MainWP Community

Restrict subscriptions creation process in WooCommerce

Restrict subscriptions creation process in WooCommerce on your child site.

Snippet Type

Execute on Child Sites

Snippet

if ( current_user_can( 'edit_pages' ) ) { // Edit capability here.
	remove_filter( 'product_type_selector', 'WC_Subscriptions_Admin::add_subscription_products_to_select' );
}
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.