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



register_post_type_args ›

Since4.4.0
已弃用n/a
apply_filters( 'register_post_type_args', $args, $this->name )
参数: (2)
  • (array) $args Array of arguments for registering a post type.
    Required: Yes
  • (string) $post_type Post type key.
    Required: Yes
定义在:
文档:

Filters the arguments for registering a post type.





源码

$args = apply_filters( 'register_post_type_args', $args, $this->name );