diff --git a/includes/class-wc-post-types.php b/includes/class-wc-post-types.php index c310b1cb37a..ff9a053bcaf 100644 --- a/includes/class-wc-post-types.php +++ b/includes/class-wc-post-types.php @@ -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, + ) + ) + ); } /**