wp-config constants

The wp-config.php constants RankFlect SEO reads, the ones it defines for your code, and WordPress constants that change its audit and IndexNow behavior.

Updated 2 min read
On this page

RankFlect SEO is configured in wp-admin, not in wp-config.php. A handful of constants still matter: a few you can set, some RankFlect SEO defines for your own code, and some WordPress constants it reads.

Add constants to wp-config.php above the line /* That's all, stop editing! Happy publishing. */.

Constants you can set

Constant Default What it does
RANKFLECT_FS_ID 42293 The Freemius product ID used for licensing and updates.
RANKFLECT_FS_PUBLIC_KEY RankFlect SEO's public key The Freemius public key that goes with the product ID.

Important Leave RANKFLECT_FS_ID and RANKFLECT_FS_PUBLIC_KEY alone on normal sites. Both are public values that RankFlect SEO sets for you. If either is empty, the licensing SDK isn't loaded and the plugin runs as RankFlect SEO Free, without license activation, the trial or Pro updates.

Constants RankFlect SEO defines

These are set by RankFlect SEO when it loads. Read them in your code; don't define them yourself.

Constant Value
RANKFLECT_VERSION The plugin version, for example 1.1.1.
RANKFLECT_DB_VERSION The database schema version.
RANKFLECT_FILE Full path to the main plugin file.
RANKFLECT_DIR Path to the plugin folder, with a trailing slash.
RANKFLECT_URL URL of the plugin folder, with a trailing slash.
if ( defined( 'RANKFLECT_VERSION' ) && version_compare( RANKFLECT_VERSION, '1.1.0', '>=' ) ) {
	// Code that needs RankFlect SEO 1.1.0 or later.
}

WordPress constants RankFlect SEO reads

Constant Where RankFlect SEO uses it
DISALLOW_FILE_EDIT The site audit security check "Theme and plugin file editing is enabled" passes when it is true. When you apply that check's fix, RankFlect SEO defines DISALLOW_FILE_EDIT as true on every request (unless wp-config.php already defines it). See Security hardening.
WP_DEBUG, WP_DEBUG_DISPLAY The audit warns "PHP errors are shown to visitors" when debug output reaches the page. Set WP_DEBUG_DISPLAY to false on live sites.
WP_DEBUG_LOG When it is true and wp-content/debug.log exists, the audit checks whether the log can be downloaded ("The debug log can be downloaded by anyone").
WP_IMPORTING While it is true (during imports), publishing a post doesn't trigger an IndexNow submission.

Recommended settings for a live site:

define( 'WP_DEBUG', false );
define( 'WP_DEBUG_DISPLAY', false );
define( 'DISALLOW_FILE_EDIT', true );

FAQ

Can I set RankFlect SEO's settings in wp-config.php?

No. Settings are stored in the database and changed in RankFlect SEO → Settings, by AI agents (within their permissions) or through backups and export and import.

Can I turn off AI agent access with a constant?

No. Turn off Allow AI agents to connect in RankFlect SEO → AI Agents. Agents can't turn it back on themselves.

Was this page helpful?

Still need help?

Email us with your WordPress and RankFlect SEO versions and what you tried. Pro customers get priority replies.

Contact support