Filter: bricks/frontend/disable_opengraph
Filter: bricks/frontend/disable_opengraph
Section titled “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.
Parameters
Section titled “Parameters”$disable(bool): Whether to disable Open Graph tags.
Example usage
Section titled “Example usage”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;} ); Was this page helpful?