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



default_category_post_types › Filtr WordPress Hooks

Od5.5.0
Przestarzałyn/a
› apply_filters( 'default_category_post_types', array()
Parametry:
  • () post_types An array of post type names. Default empty array.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters post types (in addition to 'post') that require a default category.





Źródło

$default_category_post_types = apply_filters( 'default_category_post_types', array() );