Last active
August 29, 2015 14:03
-
-
Save curtismchale/cb035d42c42eb19af3f7 to your computer and use it in GitHub Desktop.
Adds a Custom Post Type called 'members_cpt' to the list of allowed 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
<?php | |
/** | |
* Adds the custom post type 'members_cpt' to the list of post types allowed | |
* | |
* @param array $allowed Existing array of allowed CPT's | |
* @return array $allowed Modified array of allowed CPT's | |
*/ | |
function add_members_cpt( $allowed ){ | |
$allowed[] = 'members_cpt'; | |
return $allowed; | |
} | |
add_filter( 'wecr_allowed_post_types', 'add_members_cpt' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment