wp_count_posts Wordpress function


Description:

Count number of posts of a post type and is user has permissions to view.


Syntax:


Arguments:

(string) $type Optional. Post type to retrieve count
(string) $perm Optional. 'readable' or empty.


Return Type:

(object) Number of posts for each status


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_count_posts


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×