Changeset 33241
- Timestamp:
- 07/13/2015 10:02:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r33116 r33241 256 256 * @since 3.0.0 257 257 * @since 4.1.0 Added `$post_type` argument. 258 * @since 4.3.0 Added `$public_only` argument. Added the ability to pass an array of post types to `$post_type`. 258 * @since 4.3.0 Added `$public_only` argument. Added the ability to pass an array 259 * of post types to `$post_type`. 259 260 * 260 261 * @global wpdb $wpdb WordPress database object for queries. … … 262 263 * @param int $userid User ID. 263 264 * @param array|string $post_type Optional. Post type(s) to count the number of posts for. Default 'post'. 264 * @param bool $public_only Optional. Only return counts for public posts. Defaults tofalse.265 * @param bool $public_only Optional. Whether to only return counts for public posts. Default false. 265 266 * @return int Number of posts the user has written in this post type. 266 267 */
Note: See TracChangeset
for help on using the changeset viewer.