How to edit your wp-config.php file
You can white label the AB Split Test plugin , enable debugging or a whole lot of other things by editing your wp-config.php file
If you’re not sure how to find and edit it, read on.
Where Is wp-config.php
Located?
Despite common confusion, wp-config.php
is not inside the wp-content
folder. It’s located one level above it – in the root directory of your WordPress installation.
Here’s the typical folder structure:
/public_html/ ← wp-config.php is here
wp-content/
wp-includes/
wp-admin/
If you’re using a server management panel like cPanel, Plesk, RunCloud, or GridPane, you can usually browse to this file using the File Manager or Terminal/SFTP tools they provide.
How to Edit wp-config.php
Option 1: Using cPanel or your hosts File Manager
- Log in to your hosting control panel (e.g. cPanel or Plesk).
- Find the File Manager.
- Navigate to the root folder (often called
public_html
, or your domain name). - Find and click on
wp-config.php
. - Use the built-in Code Editor to make your changes.
Option 2: Using FTP or SFTP
- Connect using an FTP client (like FileZilla).
- Navigate to the root WordPress folder.
- Download
wp-config.php
to your local machine. - Open it with a code editor (VS Code, Sublime Text, Notepad++).
- Make your changes, then re-upload the file to replace the original.
What to Add (White Label Example)
Find this line near the bottom of the file:
/* That's all, stop editing! Happy publishing. */
Now insert the following lines just before it:
define('BT_AB_TEST_WL_NAME', 'My Test Plugin'); // Rename AB Split Test Plugin name
define('BT_AB_TEST_WL_URL', 'https://mysite.com'); // Change support or product URL
define('BT_AB_TEST_WL_ABTEST', 'Experiment'); // Your preferred term for "A/B Test"
/* That's all, stop editing! Happy publishing. */
Explanation of Each Line
Constant | Description |
---|---|
BT_AB_TEST_WL_NAME | Changes the plugin name shown in the admin UI |
BT_AB_TEST_WL_URL | Updates the plugin’s documentation or support URL |
BT_AB_TEST_WL_ABTEST | Replaces “A/B Test” throughout the UI (e.g., “Experiment”) |
Example
Let’s say you’re rebranding the plugin for use in a client dashboard:
define('BT_AB_TEST_WL_NAME', 'Conversion Power Tools');
define('BT_AB_TEST_WL_URL', 'https://youragency.com/tools');
define('BT_AB_TEST_WL_ABTEST', 'Optimization');
Once saved, the plugin will now appear as “Conversion Power Tools”, with custom terminology and URLs throughout.
⚠️ Tips & Reminders
- Always add your custom lines before:
/* That's all, stop editing! Happy publishing. */
This ensures WordPress loads them early enough. - If you break something (white screen, errors), remove the lines or double-check for syntax errors (e.g. missing semicolons or quotes).
- These constants apply across the whole site, so all admins will see the white-labeled version.
Need help? Our support team can walk you through it. Just reach out from ABSplitTest.com.