Discover the process of internally activating the Element Pack 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 Function Doesn't Already Exists
* Hook into after_switch_theme
*
* Activate Element Pack Pro by Theme Activation
*/
if ( ! function_exists( '_your_prefix_ep_pro_active_by_theme' ) ) {
function _your_prefix_ep_pro_active_by_theme() {
// Execute theme activation procedures here…
// your Agency License Key
update_option( "element_pack_license_key", "XXXXXX-XXXXXX-XXXXXX-XXXXXX" );
// your email address
update_option( "element_pack_license_email", "[email protected]" );
}
/**
* Hook into after_switch_theme
* Make sure function exists
*/
if ( function_exists( '_your_prefix_ep_pro_active_by_theme' ) ) {
add_action( 'after_switch_theme', '_your_prefix_ep_pro_active_by_theme' );
}
}
This code snippet ensures the activation of the Element Pack 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( 'BDTEP_WL' ) ) {
define( 'BDTEP_WL' , true );
}
if ( !defined( 'BDTEP_LO' ) ) {
define( 'BDTEP_LO' , true );
}
This code utilizes the defined constants BDTEP_WL and BDTEP_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/