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



_wp_secrets_delete › WordPress Function

Since7.2.0
Deprecatedn/a
› _wp_secrets_delete ( $name, $network )
Parameters: (2)
  • (string) $name The secret's name.
    Required: Yes
  • (bool) $network Whether this is a network-scope secret.
    Required: Yes
Returns:
  • (true|WP_Error)
Defined at:
Codex:

Shared implementation behind wp_delete_secret() and wp_delete_network_secret().



Source

function _wp_secrets_delete( string $name, bool $network ) {
	return _wp_secrets_get_provider()->delete( $name, $network );
}