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 helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.