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



wp_set_network_secret › WordPress Function

Seit7.2.0
Veraltetn/v
› wp_set_network_secret ( $name, $value )
Parameter: (2)
  • (string) $name The secret's namespaced name.
    Erforderlich: Ja
  • (string) $value The plaintext value to store.
    Erforderlich: Ja
Gibt zurück:
  • (true|WP_Error)
Definiert in:
Codex:

Encrypts and stores a network-scope secret.

Site secrets and network secrets are separate functions with separate capabilities and separate storage prefixes, with no implicit fallback from one scope to the other. The proposal describes network scope but does not name these functions; these are this implementation's names for them.


Quellcode

function wp_set_network_secret( string $name, $value ) {
	return _wp_secrets_set( $name, $value, true );
}