Created
July 9, 2019 18:09
-
-
Save MarkPraschan/79036ed5909495a51f2052c4b8a1e787 to your computer and use it in GitHub Desktop.
Declare post types for Yoast's Orphaned Content filter (wpseo_orphaned_post_types)
This file contains 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
add_filter( 'wpseo_orphaned_post_types', 'set_wpseo_orphaned_post_types'); | |
function set_wpseo_orphaned_post_types( $post_types ) { | |
$post_types = array(''); // empty array disables the orhpaned content filter for all post types | |
return $post_types; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment