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



register_{$post_type}_post_type_args › Filtr WordPress Hooks

Od6.4.0
Przestarzałyn/a
apply_filters( "register_{$post_type}_post_type_args", $args, $this->name )
Parametry: (2)
  • (array) $args Array of arguments for registering a post type. See the register_post_type() function for accepted arguments.
    Wymagane: Tak
  • (string) $post_type Post type key.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the arguments for registering a specific post type.

The dynamic portion of the filter name, $post_type, refers to the post type key.

Possible hook names include:

  • register_post_post_type_args
  • register_page_post_type_args




Źródło

$args = apply_filters( "register_{$post_type}_post_type_args", $args, $this->name );