Created
February 28, 2019 18:31
-
-
Save wp-seopress/668eb85025d4d80cfff8240e31ed894c to your computer and use it in GitHub Desktop.
Filter Content Analysis Metabox call by post type
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
| function sp_metaboxe_content_analysis($seopress_get_post_types) { | |
| //Post types array, eg: post and page, notice the array_flip to convert values to keys | |
| $seopress_get_post_types = array_flip(array('post','page')); | |
| return $seopress_get_post_types; | |
| } | |
| add_filter('seopress_metaboxe_content_analysis', 'sp_metaboxe_content_analysis'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment