wpseo_opengraph_image filter is not Working
-
I have tried “wpseo_opengraph_type”, “wpseo_opengraph_url” which is working fine. But the following code to remove opengraph image is not working.
// Remove Yoast opengraph image function remove_yoast_og_image( $myfilter ) { if( is_page( 'about' ) || is_tax('taxonomy') ) { return false; } return $myfilter; } add_filter( 'wpseo_opengraph_image', 'remove_yoast_og_image', 10, 1 );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wpseo_opengraph_image filter is not Working’ is closed to new replies.