Changeset 25268
- Timestamp:
- 09/05/2013 11:20:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r25266 r25268 3616 3616 3617 3617 /** 3618 * Retrieve a list of pages .3618 * Retrieve a list of pages 3619 3619 * 3620 3620 * @global wpdb $wpdb WordPress database abstraction object … … 3623 3623 * 3624 3624 * @param mixed $args (optional) Array or string of arguments { 3625 * @type int 3626 * @type string 3627 * @type string 3628 * @type bool 3629 * @type array 3630 * @type array 3631 * @type string 3632 * @type string 3633 * @type string 3634 * @type int 3635 * @type int 3636 * @type int 3637 * @type int 3638 * @type string 3639 * @type string 3625 * @type int 'child_of' Page ID to return child and grandchild pages of (default 0). 3626 * @type string 'sort_order' How to sort retrieved pages (default 'ASC', accepts 'ASC', 'DESC'). 3627 * @type string 'sort_column' What column to sort pages by (default 'post_title', accepts post fields). 3628 * @type bool 'hierarchical' Whether to return pages hierarchically (default 1|true). 3629 * @type array 'exclude' Array of page IDs to exclude (default array). 3630 * @type array 'include' Array of page IDs to include (default array). 3631 * @type string 'meta_key' Only include pages with this meta key (default empty). 3632 * @type string 'meta_value' Only include pages with this meta value (default empty). 3633 * @type string 'authors' A comma-separated list of author IDs (default empty). 3634 * @type int 'parent' Page ID to return direct children of. 'hierarchical' must be 0|false (default -1). 3635 * @type int 'exclude_tree' Remove all children of given ID from returned pages (default empty). 3636 * @type int 'number' The number of pages to return (default empty). 3637 * @type int 'offset' The number of pages to skip before returning (default 0). 3638 * @type string 'post_type' The post type to return (default 'page'). 3639 * @type string 'post_status' A comma-separated list of post status types to include (default 'publish'). 3640 3640 * } 3641 * @return array List of pages matching defaults or $args 3642 */ 3643 function get_pages( $args = '') {3641 * @return array List of pages matching defaults or $args. 3642 */ 3643 function get_pages( $args = '' ) { 3644 3644 global $wpdb; 3645 3645
Note: See TracChangeset
for help on using the changeset viewer.