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



xmlrpc_allow_post_type_writes › WordPress过滤钩子

Since7.1.1
已弃用n/a
› apply_filters( 'xmlrpc_allow_post_type_writes', ! $is_internal_only, $post_type )
参数: (2)
  • () allowed Whether the post type accepts XML-RPC writes.
    Required: Yes
  • () post_type The post type object.
    Required: Yes
定义在:
文档:

Filters whether a post type accepts writes via XML-RPC.

Defaults to false for internal-only builtin post types (public=false, show_in_rest=false, _builtin=true), such as customize_changeset, whose writes are meant to flow through dedicated helpers. Return true to opt a post type back in.




源码

$allowed = apply_filters( 'xmlrpc_allow_post_type_writes', ! $is_internal_only, $post_type );