Config role permissions and installation file

This commit is contained in:
Brian Miyaji
2013-12-31 05:00:57 +11:00
parent 364faf04cd
commit 77569c97f0
6 changed files with 35 additions and 26 deletions

View File

@@ -8,10 +8,11 @@ function sp_column_cpt_init() {
'label' => $name,
'labels' => $labels,
'public' => false,
'show_ui' => true,
'show_in_menu' => false,
'hierarchical' => false,
'supports' => array( 'title', 'page-attributes' ),
'register_meta_box_cb' => 'sp_column_meta_init',
'show_in_menu' => 'edit.php?post_type=sp_event',
'capability_type' => 'sp_config'
);
register_post_type( 'sp_column', $args );

View File

@@ -8,9 +8,10 @@ function sp_outcome_cpt_init() {
'label' => $name,
'labels' => $labels,
'public' => false,
'show_ui' => true,
'show_in_menu' => false,
'hierarchical' => false,
'supports' => array( 'title', 'page-attributes' ),
'show_in_menu' => 'edit.php?post_type=sp_event',
'capability_type' => 'sp_config'
);
register_post_type( 'sp_outcome', $args );

View File

@@ -8,9 +8,10 @@ function sp_result_cpt_init() {
'label' => $name,
'labels' => $labels,
'public' => false,
'show_ui' => true,
'show_in_menu' => false,
'hierarchical' => false,
'supports' => array( 'title', 'page-attributes' ),
'show_in_menu' => 'edit.php?post_type=sp_event',
'capability_type' => 'sp_config'
);
register_post_type( 'sp_result', $args );

View File

@@ -8,10 +8,11 @@ function sp_statistic_cpt_init() {
'label' => $name,
'labels' => $labels,
'public' => false,
'show_ui' => true,
'show_in_menu' => false,
'hierarchical' => false,
'supports' => array( 'title', 'page-attributes' ),
'register_meta_box_cb' => 'sp_statistic_meta_init',
'show_in_menu' => 'edit.php?post_type=sp_event',
'capability_type' => 'sp_config'
);
register_post_type( 'sp_statistic', $args );