parent
64ddf83184
commit
81297cf94d
|
@ -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,
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue