wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
pre_wp_count_posts › Filtr WordPress Hooks
Od7.2.0
Przestarzałyn/a
› apply_filters( 'pre_wp_count_posts', null, $type, $perm )
| Parametry: (3) |
|
| Zdefiniowane na: |
|
| Codex: |
Filters the post counts before the query is run.
Returning a stdClass object short-circuits wp_count_posts(), skipping both the object cache lookup and the database query. This allows the counts to be served from another source, such as a value pre-computed in the background, when an exact real-time count is not required. Any registered post status missing from the filtered value is added to the result and set to zero. The returned value is not cached and passed through the {@see 'wp_count_posts'} filter.Powiązane Funkcje: wp_count_posts, wp_count_sites, previous_posts, wp_count_comments, wp_count_terms, rewind_posts
Powiązane Hooks: wp_count_posts, pre_count_users, pre_wp_unique_post_slug, pre_get_posts, pre_untrash_post