Created
January 28, 2022 10:42
-
-
Save Ciantic/04e51c397673af0435ce7f3e7edc22db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Disable article images that come from the content e.g. first <img /> tag | |
| add_filter('the_seo_framework_image_generation_params', function( $params, $args, $context ) { | |
| if (isset( $params['cbs']['content'])) { | |
| unset($params["cbs"]["content"]); | |
| } | |
| return $params; | |
| }, 11, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment