Skip to content
Get Bricks

Filter: bricks/frontend/disable_opengraph

Determines whether Bricks should generate and output Open Graph meta tags (e.g., og:title, og:image). Use this to disable Bricks’ Open Graph implementation if you are using a third-party SEO plugin that already handles this.

  • $disable (bool): Whether to disable Open Graph tags.
add_filter( 'bricks/frontend/disable_opengraph', function( $disable ) {
// Example: Disable Open Graph tags on 'product' post type
if ( is_singular( 'product' ) ) {
return true;
}
return $disable;
} );