wp_user_request_action_description
函数
wp_user_request_action_description ( $action_name )
- 参数
-
-
(string)
$action_name
Action name of the request.- Required: 是
-
(string)
- 返回值
-
- (string) Human readable action name.
- 定义位置
-
-
wp-includes/user.php
, line 4607
-
wp-includes/user.php
- 引入
- 4.9.6
- 弃用
- –
从名称中获取动作描述并返回一个字符串。
function wp_user_request_action_description( $action_name ) { switch ( $action_name ) { case 'export_personal_data': $description = __( 'Export Personal Data' ); break; case 'remove_personal_data': $description = __( 'Erase Personal Data' ); break; default: /* translators: %s: Action name. */ $description = sprintf( __( 'Confirm the "%s" action' ), $action_name ); break; } /** * Filters the user action description. * * @since 4.9.6 * * @param string $description The default description. * @param string $action_name The name of the request. */ return apply_filters( 'user_request_action_description', $description, $action_name ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。