wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



xmlrpc_allow_post_type_writes › WordPress Filter Hooks

Da7.1.1
Deprecaton/a
› apply_filters( 'xmlrpc_allow_post_type_writes', ! $is_internal_only, $post_type )
Parametri: (2)
  • () allowed Whether the post type accepts XML-RPC writes.
    Richiesto: Sì
  • () post_type The post type object.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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