Skip to content

Instantly share code, notes, and snippets.

@collegeman
Created February 16, 2012 16:30
Show Gist options
  • Select an option

  • Save collegeman/1846251 to your computer and use it in GitHub Desktop.

Select an option

Save collegeman/1846251 to your computer and use it in GitHub Desktop.
Custom configurations for SharePress
<?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