Created
February 16, 2012 16:30
-
-
Save collegeman/1846251 to your computer and use it in GitHub Desktop.
Custom configurations for SharePress
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 | |
| add_filter('sharepress_supported_post_types', '__my_sharepress_supported_post_types'); | |
| function __my_sharepress_supported_post_types($types) { | |
| // Want to add SharePres support to a Page? Uncomment this line: | |
| //$types[] = 'page'; | |
| // Want to add SharePress support to custom post types? List them thusly: | |
| $types[] = 'my_custom_type_1'; | |
| $types[] = 'my_custom_type_2'; | |
| return $types; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment