Add filters to taxonomies and native editor to post types

This commit is contained in:
Brian Miyaji
2016-04-11 00:04:24 +10:00
parent 1a24e9fce3
commit 5be69ecb24
12 changed files with 17 additions and 227 deletions

View File

@@ -82,7 +82,7 @@ class SportsPress_Calendars {
'exclude_from_search' => false,
'hierarchical' => false,
'rewrite' => array( 'slug' => get_option( 'sportspress_calendar_slug', 'calendar' ) ),
'supports' => array( 'title', 'author', 'thumbnail' ),
'supports' => array( 'title', 'editor', 'author', 'thumbnail' ),
'has_archive' => false,
'show_in_nav_menus' => true,
'show_in_menu' => 'edit.php?post_type=sp_event',
@@ -159,12 +159,6 @@ class SportsPress_Calendars {
'context' => 'normal',
'priority' => 'high',
),
'editor' => array(
'title' => __( 'Description', 'sportspress' ),
'output' => 'SP_Meta_Box_Calendar_Editor::output',
'context' => 'normal',
'priority' => 'low',
),
);
return $meta_boxes;
}