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

  1. Log in to your hosting control panel (e.g. cPanel or Plesk).
  2. Find the File Manager.
  3. Navigate to the root folder (often called public_html, or your domain name).
  4. Find and click on wp-config.php.
  5. Use the built-in Code Editor to make your changes.

Option 2: Using FTP or SFTP

  1. Connect using an FTP client (like FileZilla).
  2. Navigate to the root WordPress folder.
  3. Download wp-config.php to your local machine.
  4. Open it with a code editor (VS Code, Sublime Text, Notepad++).
  5. 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

ConstantDescription
BT_AB_TEST_WL_NAMEChanges the plugin name shown in the admin UI
BT_AB_TEST_WL_URLUpdates the plugin’s documentation or support URL
BT_AB_TEST_WL_ABTESTReplaces “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.

Leave a Comment

You must be logged in to post a comment.