Integrated The Agency & Extended Licenses by Theme Activation For Prime Slider Pro Plugin

  • BdThemes
  • Integrated The Agency & Extended Licenses by Theme Activation For Prime Slider Pro Plugin

Table Of Contents

Integrated The Agency & Extended Licenses by Theme Activation For Prime Slider Pro Plugin

Discover the process of internally activating the Prime Slider Pro or other Agency & Extended plugins by Bdthemes in conjunction with your themes.

Note: This feature is particularly useful for theme authors with an Agency or Extended License.

It would be beneficial to activate the plugin during the theme activation process. If you choose to do so, you can employ your own activation procedure or consider the following steps:

Step 1: Optionally, integrate the provided code into your functions or settings file as demonstrated below:

/**
 * Make sure the function doesn't already Exists
 * Hook into after_switch_theme
 * 
 * Activate Prime Slider Pro by Theme Activation
 */
if ( ! function_exists( '_your_prefix_ps_pro_active_by_theme' ) ) {

	function _your_prefix_ps_pro_active_by_theme() {
		// Execute theme activation procedures here…

		// your Agency License Key
		update_option( "prime_slider_license_key", "XXXXXX-XXXXXX-XXXXXX-XXXXXX" );

		// your email address
		update_option( "prime_slider_license_email", "[email protected]" );
	}

	/**
	 * Hook into after_switch_theme
	 * Make sure the function exists
	 */
	if ( function_exists( '_your_prefix_ps_pro_active_by_theme' ) ) {
		add_action( 'after_switch_theme', '_your_prefix_ps_pro_active_by_theme' );
	}
}

This code snippet ensures the activation of the Prime Slider or other Agency plugins by Bdthemes when your theme is activated. Adjust the placeholders with your specific license key and email for seamless integration.

Step 2: That concludes the process; proceed to the next steps for configuring the white-label settings.

Step 3: To hide the License Panel of the Plugin by your theme, you can incorporate the following code into your theme’s functions or settings file:

if ( !defined( 'BDTPS_WL' ) ) {
	define( 'BDTPS_WL' , true );
}


if ( !defined( 'BDTPS_LO' ) ) {
	define( 'BDTPS_LO' , true );
}

This code utilizes the defined constants BDT_WL and BDT_LO to hide the License Panel as per your specifications. Integrating this code snippet into your theme’s settings will implement the desired white-label configuration.

As a Themes author, you are unable to modify the name or title of the plugin.

Note: If you want to require any plugin within your Theme, then you can generate custom-ready code from here –http://tgmpluginactivation.com/

Take advantage of fine-tuned plugins

Get Customizable Elementor Widgets to Power Up Your Website

Take advantage of fine-tuned plugins to speed up web projects without sacrificing quality. We offer a 60-days money-back guarantee.

Call or WhatsApp for assistance:+880 1700 55 95 95

Our supported payment system and security badge