users_have_additional_content

过滤钩子
apply_filters( 'users_have_additional_content', false, $userids )
参数
  • (bool) $users_have_additional_content Whether the users have additional content. Default false.
    Required:
  • (int[]) $userids Array of IDs for users being deleted.
    Required:
定义位置
相关勾子
user_request_action_email_contentnew_user_email_contentthe_editor_contentnew_admin_email_contentuser_erasure_fulfillment_email_content
相关方法
user_can_edit_post_comments_get_additional_user_keyswp_suspend_cache_additionget_theme_starter_contentuser_can_edit_postuser_can_edit_post_date
引入
5.2.0
弃用
-

“users_have_additional_content”是一个 WordPress 过滤器钩子,它允许您指示用户是否有其他内容,例如自定义字段,这些内容需要在删除用户帐户时与用户一起删除。

过滤被删除的用户在”post_author”和”link_owner”关系之外是否有其他内容与之相关。

$users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $userids );

常见问题

FAQs
查看更多 >