siteorigin_panels_postloop_exclude_current_post

siteorigin_panels_postloop_exclude_current_post

Hook Type: filter

See hook in core

Displaying hooks found in version: siteorigin-panels.2.31.3

apply_filters('siteorigin_panels_postloop_exclude_current_post') is found 1 times:

  • /inc/widgets/post-loop.php line 207
     
    		global $siteorigin_panels_current_post;
    
    		if (
    			apply_filters( 'siteorigin_panels_postloop_exclude_current_post', true ) &&
    			! empty( $siteorigin_panels_current_post )
    		) {
    			if ( ! empty( $query_args['post__not_in'] ) ) {
    				if ( ! is_array( $query_args['post__not_in'] ) ) {
    					$query_args['post__not_in'] = explode( ',', $query_args['post__not_in'] );
    					$query_args['post__not_in'] = array_map( 'intval', $query_args['post__not_in'] );