Set display position of License Settings in the Licensed Product

Themehigh
1 min readMar 19, 2019

--

WooCommerce License Manager offers you with options to generate and manage valid licenses for the WordPress themes and plugin you sell, with its easy-to-use and integrated plugin settings. The plugin also lets you add license related information to the WordPress products and product variations.

When the initial set up is done, you will be able to find the License Settings tab under WordPress Settings. To decide another display position other than WordPress — Settings, follow the below steps

  1. Open the Licensed Plugin file.
  2. Copy the below-shown short-code to the plugin file where the License settings must be displayed
echo do_shortcode(‘[licensepage-new-plugin]’);
  1. Edit the shortcut and replaced “new-plugin” with the Plugin name, without Capital letters and spaces replaced with hyphens.
  2. Save the Changes.

Now if you wish to avoid the Settings being displayed under WordPress Settings, please follow the below steps:

To Remove the License Settings from WordPress Settings

Add the below-shown filter to your licensed plugin file

add_filter('thlm_enable_default_license_page', '__return_false');

The license settings of the plugin will be displayed only at the place you have used the short-code.

--

--

Themehigh
Themehigh

Written by Themehigh

Themehigh develops WordPress and WooCommerce plugins that are being used by 2 million users around the globe.

No responses yet