siteorigin_panels_renderer_current_post_check

siteorigin_panels_renderer_current_post_check

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: siteorigin-panels.2.31.3

apply_filters('siteorigin_panels_renderer_current_post_check') is found 1 times:

  • /inc/renderer.php line 518
    		// If $panels_data is empty, and the current post being processed is the same as the last one, don't process it.
    		if (
    			empty( $panels_data ) &&
    			! empty( $siteorigin_panels_current_post ) &&
    			apply_filters( 'siteorigin_panels_renderer_current_post_check', true ) &&
    			$siteorigin_panels_current_post == $post_id
    		) {
    			trigger_error( __( 'Prevented SiteOrigin layout from repeated rendering.', 'siteorigin-panels' ) );
    
    			return;
    		}