Uses
Uses | Description |
---|---|
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
wp-includes/user.php: count_user_posts() | Number of posts user has written. |
This function has been deprecated. Use count_user_posts() instead.
Retrieves the number of posts a user has written.
(int) (Required) User to count posts for.
(int) Number of posts the given user has written.
File: wp-includes/deprecated.php
function get_usernumposts( $userid ) { _deprecated_function( __FUNCTION__, '3.0.0', 'count_user_posts()' ); return count_user_posts( $userid ); }
Version | Description |
---|---|
3.0.0 | Use count_user_posts() |
0.71 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_usernumposts