-
-
Save wpcrmsystem/d2d95b74336130f27c4e47bf8d439560 to your computer and use it in GitHub Desktop.
Ninja Demo Page Filter Example
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
<?php | |
function add_pages_to_filter( $array ) { | |
$array[] = 'post-new.php?post_type=my-custom-post-type'; | |
return $array; | |
} | |
add_filter( 'nd_allowed_pages' , 'add_pages_to_filter' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment