Add shop_webhook custom post type

Part of #5564
This commit is contained in:
Max Rice 2014-07-30 16:22:40 -04:00
parent 64ddf83184
commit 81297cf94d
1 changed files with 21 additions and 0 deletions

View File

@ -367,6 +367,27 @@ class WC_Post_types {
) )
); );
} }
register_post_type( 'shop_webhook',
apply_filters( 'woocommerce_register_post_type_shop_webhook',
array(
'label' => __( 'Webhooks', 'woocommerce' ),
'public' => false,
'show_ui' => false,
'capability_type' => 'shop_webhook',
'map_meta_cap' => true,
'publicly_queryable' => false,
'exclude_from_search' => true,
'show_in_menu' => false,
'hierarchical' => false,
'rewrite' => false,
'query_var' => false,
'supports' => false,
'show_in_nav_menus' => false,
'show_in_admin_bar' => false,
)
)
);
} }
/** /**