Apply White Label Settings from wp-config.php File

Apply White Label Settings from wp-config.php File

By now, we all know how to White Label UAE? It is also known that the white label settings page can be hidden from the dashboard. However, it reappears when the plugin is re-activated on the website.

We were asked whether these white label settings can be hidden permanently. Especially agencies who serve many clients would not want them to know that the plugin or theme used to build their website is a third party white labeled plugin.

Therefore, we』ve introduced a method that will allow you to White Label the plugin and hide the White Label settings – and keep them hidden, no matter what activity the user performs with the plugin or on the website. This means that you can white label the plugin permanently from the wp-config.php file and these settings will not be changed from the WordPress dashboard settings.

To achieve the above scenario we have added a White Label Constants to UAEL from version 1.5.1.

Below is the list for the  White Label Settings and their respective White Label Constants.

White Label SettingsWhite Label ConstantsAuthorUAEL_WL_AUTHORAuthor URLUAEL_WL_AUTHOR_URLPlugin NameUAEL_WL_PLUGIN_NAMEPlugin Short NameUAEL_WL_PLUGIN_SHORT_NAMEPlugin DescriptionUAEL_WL_PLUGIN_DESCRIPTIONReplace LogoUAEL_WL_REPLACE_LOGODisplay Knowledge Base BoxUAEL_WL_KNOWLEDGEBASEKnowledge Base URLUAEL_WL_KNOWLEDGEBASE_URLDisplay Support BoxUAEL_WL_SUPPORTSupport URLUAEL_WL_SUPPORT_URLDisplay Beta Update BoxUAEL_WL_BETA_UPDATE_BOXDisplay Help LinksUAEL_WL_INTERNAL_HELP_LINKSHide White LabelWP_UAEL_WL

How to use White Label Constants?

Step 1 – Open and edit the wp-config.php file.Step 2 –  Find the line /* That』s all, stop editing! Happy blogging. */ and add White Label Constants code just before this line.Step  3 – Below is the sample code for the White Label Constants. You can update the strings as per your requirement.

define( 'UAEL_WL_AUTHOR', 'UL Author' );
define( 'UAEL_WL_AUTHOR_URL', 'https://www.ulauthor.com' );
define( 'UAEL_WL_PLUGIN_NAME', 'UL Plugin' );
define( 'UAEL_WL_PLUGIN_SHORT_NAME', 'ULP' );
define( 'UAEL_WL_PLUGIN_DESCRIPTION', 'UL Plugin Addon for Elementor' );
define( 'UAEL_WL_REPLACE_LOGO', 'disable' ); // disable/enable
define( 'UAEL_WL_KNOWLEDGEBASE', 'enable' ); // disable/enable
define( 'UAEL_WL_KNOWLEDGEBASE_URL', '#knowledgebase' );
define( 'UAEL_WL_SUPPORT', 'enable' ); // disable/enable
define( 'UAEL_WL_SUPPORT_URL', '#support' );
define( 'UAEL_WL_BETA_UPDATE_BOX', 'enable' ); // disable/enable
define( 'UAEL_WL_INTERNAL_HELP_LINKS', 'enable' ); // disable/enable
define( 'WP_UAEL_WL', true ); // true/false

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注