wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



xmlrpc_allow_post_type_writes › Filtr WordPress Hooks

Od7.1.1
Przestarzałyn/a
› apply_filters( 'xmlrpc_allow_post_type_writes', ! $is_internal_only, $post_type )
Parametry: (2)
  • () allowed Whether the post type accepts XML-RPC writes.
    Wymagane: Tak
  • () post_type The post type object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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.




Źródło

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