In this knowledgebase article, we’ll show you how to skip the registration requirement when testing Rank Math in WPLoader.
Note: This tutorial is intended for developers who are familiar with building WordPress products.
If you build extensions for Rank Math, you might run into instances where the WPLoader test fails. This happens because the Rank Math plugin is not connected to an account.
As a developer, you can resolve this issue by copying this code and pasting it into the wp-config.php file using cPanel/FTP.
How to Insert the Code in Your wp-config.php File
Note: The wp-config.php file contains sensitive information that may stop your website from working. So we recommend you create a backup before editing it.
You would insert the code in your wp-config.php file using a File Transfer Protocol (FTP) client or cPanel.
1 Open cPanel and Select File Manager
Head over to the cPanel of your site and select File Manager.
2 Open the wp-config.php File
In the File Manager, navigate to public_html → wp-config.php. Right-click this PHP file and select Edit.
3 Add the Code and Save Your Changes
Add the code before the line that says, “That’s all, stop editing! Happy publishing”. Then save your changes.
The good part is that this works for adding any code to your wp-config.php file. As we mentioned, you should create a backup whenever you want to add or delete code from your wp-config.php file. The file contains information about your database. Adding or deleting the wrong code here could lock you out of your WordPress site.
If you run into issues while trying to add the code to your wp-config.php file, get in touch with our support staff. We’re always here to help.