wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



update_post_term_count_statuses › WordPress Filter Hooks

Seit5.7.0
Veraltetn/v
apply_filters( 'update_post_term_count_statuses', $post_statuses, $taxonomy )
Parameter: (2)
  • (string[]) $post_statuses List of post statuses to include in the count. Default is 'publish'.
    Erforderlich: Ja
  • (WP_Taxonomy) $taxonomy Current taxonomy object.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the post statuses for updating the term count.





Quellcode

$post_statuses = esc_sql( apply_filters( 'update_post_term_count_statuses', $post_statuses, $taxonomy ) );