mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-05 17:50:03 +00:00
Docs: Improve documentation for WP_Query::is_archive() per the documentation standards.
Follow-up to [49504]. See #50545. git-svn-id: https://develop.svn.wordpress.org/trunk@49506 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3607,10 +3607,18 @@ class WP_Query {
|
||||
/**
|
||||
* Is the query for an existing archive page?
|
||||
*
|
||||
* Month, Year, Category, Author, Post Type archive...
|
||||
* Archive pages include category, tag, author, date, custom post type,
|
||||
* and custom taxonomy based archives.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @see WP_Query::is_category()
|
||||
* @see WP_Query::is_tag()
|
||||
* @see WP_Query::is_author()
|
||||
* @see WP_Query::is_date()
|
||||
* @see WP_Query::is_post_type_archive()
|
||||
* @see WP_Query::is_tax()
|
||||
*
|
||||
* @return bool Whether the query is for an existing archive page.
|
||||
*/
|
||||
public function is_archive() {
|
||||
|
||||
Reference in New Issue
Block a user