Filter: bricks/fix_filter_element_db
Filter: bricks/fix_filter_element_db
Section titled “Filter: bricks/fix_filter_element_db”Allows plugins to intercept and handle the database update process for filter elements on a per-post basis. If the filter returns true, Bricks will skip its default update logic for that post.
Parameters
Section titled “Parameters”$handled(bool): Whether the update has been handled. Default isfalse.$post_id(int): The ID of the post being processed.$template_type(string): The template type of the post.
Example usage
Section titled “Example usage”add_filter( 'bricks/fix_filter_element_db', function( $handled, $post_id, $template_type ) { // Example: Skip processing for a specific post ID if ( $post_id === 1234 ) { return true; }
return $handled;}, 10, 3 ); Was this page helpful?