siteorigin_panels_ai_layout_pre_save, $panels_data, $post, $post_id

siteorigin_panels_ai_layout_pre_save, $panels_data, $post, $post_id

Hook Type: filter

See hook in core

Displaying hooks found in version: siteorigin-panels.2.36.0

apply_filters('siteorigin_panels_ai_layout_pre_save, $panels_data, $post, $post_id') is found 1 times:

  • /inc/admin.php line 259
    		 * @param array   $panels_data Canonical panels_data to be saved.
    		 * @param WP_Post $post        The post being saved.
    		 * @param int     $post_id     The post ID.
    		 */
    		$filtered_panels_data = apply_filters( 'siteorigin_panels_ai_layout_pre_save', $panels_data, $post, $post_id );
    
    		// Re-sanitize ONLY when a consumer changed the layout: anything supplied or
    		// transformed by the filter must traverse process_raw_widgets() before
    		// persist (§3 — AI output is never trusted raw). When no filter is attached,
    		// or it returned the layout unchanged, the second pass MUST be skipped:
    		// widget update() sanitizers are not guaranteed idempotent, so an