wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_set_network_secret › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_set_network_secret ( $name, $value )
Parameters: (2)
  • (string) $name The secret's namespaced name.
    Required: Yes
  • (string) $value The plaintext value to store.
    Required: Yes
Returns:
  • (true|WP_Error)
Defined at:
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.


Source

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