wpseek.com
WordPress开发者和主题制作者的搜索引擎



_wp_secrets_list › WordPress Function

Since7.2.0
已弃用n/a
› _wp_secrets_list ( $name_prefix, $network )
访问:
  • private
参数: (2)
  • (string) $name_prefix Restrict to names beginning with this prefix.
    Required: Yes
  • (bool) $network Whether to list network-scope secrets.
    Required: Yes
返回:
  • (array|WP_Error)
定义在:
文档:

Shared implementation behind wp_list_secrets() and wp_list_network_secrets().



源码

function _wp_secrets_list( string $name_prefix, bool $network ) {
	return _wp_secrets_get_provider()->list_secrets( $name_prefix, $network );
}