wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren


wp_secrets_max_name_length › WordPress-Konstanten

Seit7.2.0
› define( 'WP_SECRETS_MAX_NAME_LENGTH', 172 );
Definiert in:

The longest a secret name may be.

The wp_options.option_name column allows 191 characters. The longest prefix this API stores under is '_wp_network_secret_' (19 characters), so 191 - 19 = 172 is the longest name any store built on core's options tables can accept without truncation, and every store is held to the same limit for consistency regardless of what a specific backend could technically fit.

Quellcode

define( 'WP_SECRETS_MAX_NAME_LENGTH', 172 );