Changeset 48591 for trunk/src/wp-includes/post.php
- Timestamp:
- 07/23/2020 09:53:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r48590 r48591 634 634 * 635 635 * @param mixed $args Optional. User defined arguments for replacing the defaults. Default empty. 636 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 637 * a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT. 636 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which 637 * correspond to a WP_Post object, an associative array, or a numeric array, 638 * respectively. Default OBJECT. 638 639 * @return WP_Post[]|int[] Array of post objects or post IDs. 639 640 */ … … 752 753 * 753 754 * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to global $post. 754 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 755 * a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT. 755 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which 756 * correspond to a WP_Post object, an associative array, or a numeric array, 757 * respectively. Default OBJECT. 756 758 * @param string $filter Optional. Type of filter to apply. Accepts 'raw', 'edit', 'db', 757 759 * or 'display'. Default 'raw'. … … 3506 3508 * 3507 3509 * @param array $args Optional. Arguments to retrieve posts. Default empty array. 3508 * @param string $output Optional. The required return type. One of OBJECT or ARRAY_A, which correspond to 3509 * a WP_Post object or an associative array, respectively. Default ARRAY_A. 3510 * @return array|false Array of recent posts, where the type of each element is determined by $output parameter. 3511 * Empty array on failure. 3510 * @param string $output Optional. The required return type. One of OBJECT or ARRAY_A, which 3511 * correspond to a WP_Post object or an associative array, respectively. 3512 * Default ARRAY_A. 3513 * @return array|false Array of recent posts, where the type of each element is determined 3514 * by the `$output` parameter. Empty array on failure. 3512 3515 */ 3513 3516 function wp_get_recent_posts( $args = array(), $output = ARRAY_A ) { … … 5049 5052 * 5050 5053 * @param int|WP_Post $page Page object or page ID. Passed by reference. 5051 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 5052 * a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT. 5054 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which 5055 * correspond to a WP_Post object, an associative array, or a numeric array, 5056 * respectively. Default OBJECT. 5053 5057 * @param string $filter Optional. How the return value should be filtered. Accepts 'raw', 5054 5058 * 'edit', 'db', 'display'. Default 'raw'. … … 5067 5071 * 5068 5072 * @param string $page_path Page path. 5069 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 5070 * a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT. 5073 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which 5074 * correspond to a WP_Post object, an associative array, or a numeric array, 5075 * respectively. Default OBJECT. 5071 5076 * @param string|array $post_type Optional. Post type or array of post types. Default 'page'. 5072 5077 * @return WP_Post|array|null WP_Post (or array) on success, or null on failure. … … 5169 5174 * 5170 5175 * @param string $page_title Page title. 5171 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 5172 * a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT. 5176 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which 5177 * correspond to a WP_Post object, an associative array, or a numeric array, 5178 * respectively. Default OBJECT. 5173 5179 * @param string|array $post_type Optional. Post type or array of post types. Default 'page'. 5174 5180 * @return WP_Post|array|null WP_Post (or array) on success, or null on failure.
Note: See TracChangeset
for help on using the changeset viewer.