Skip to content

Instantly share code, notes, and snippets.

@cheh
Created March 3, 2017 13:22
Show Gist options
  • Save cheh/424a7ba485496ba524fd57ff5ee5c0c6 to your computer and use it in GitHub Desktop.
Save cheh/424a7ba485496ba524fd57ff5ee5c0c6 to your computer and use it in GitHub Desktop.
Cherry5: Cherry Sidebars on Custom Post Types
add_filter( 'cherry_sidebar_post_type', 'my_prefix_add_custom_sidebars_support' );
function my_prefix_add_custom_sidebars_support( $post_types ) {
$post_types[] = 'my-post-type-name-slug'; // tm-property
return $post_types;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment