Skip to content
Get Bricks

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.

  • $handled (bool): Whether the update has been handled. Default is false.
  • $post_id (int): The ID of the post being processed.
  • $template_type (string): The template type of the post.
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 );