Disable the License administration for Client

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInPrint this page

WooCommerce is a popular e-commerce platform that provides users with a wide range of plugins to enhance their online stores. One such plugin is the WooCommerce Software License plugin, which allows store owners to manage and distribute software licenses to their customers. A key feature of this plugin is the client interface, which empowers customers to manage their license keys. However, there is also an option to disable this feature from the administrator’s perspective. In this article, we will explore the benefits and considerations of using the client interface in the WooCommerce Software License plugin.

The client interface in the WooCommerce Software License plugin provides customers with a self-service portal to manage their license keys conveniently. It enables users to view their license details, activate or deactivate licenses, and even access support resources. By implementing this feature, WooCommerce aims to enhance the user experience by giving customers control over their licenses and reducing their dependency on store administrators.

The client interface empowers customers by giving them autonomy over their software licenses. With this feature, customers can easily view their license details, including the license key, activation status, and expiration date. This information helps them keep track of their licenses, ensuring they are up to date and valid. Additionally, customers can activate or deactivate licenses as needed, providing flexibility and convenience in managing their software usage.

While the client interface offers numerous benefits, there may be scenarios where administrators choose to disable this feature. Administrators might want to maintain tighter control over license management or prefer a more personalized approach to customer support. By disabling the client interface, administrators can retain direct interaction with customers and manage licenses on their behalf. However, this approach might increase the workload for administrators and potentially affect the overall user experience.

For disabling the customer license management interfaces a custom code can be used:

    add_filter ( 'init', '__init' );
    function __init( )
            global $WOO_SL_front; 
            remove_filter ( 'woocommerce_account_menu_items', array( $WOO_SL_front, 'add_menu_items'), 10 );

    add_filter( 'woocommerce_my_account_my_orders_actions', '__my_account_my_orders_actions', 99, 2 );
    function __my_account_my_orders_actions ( $actions, $order )
            if ( isset ( $actions['sl'] ) )
                unset ( $actions['sl'] ) ;
            return $actions;   

The code should be placed inside a custom file, within /mu-plugins/ folder.


By woocommerce-sl, posted on June 15, 2023

Notify of
Inline Feedbacks
View all comments