WPDev.one
Core Function
View Source on Trac ↗

_count_posts_cache_key()

_count_posts_cache_key( mixed $type = 'post', mixed $perm = '' )

Returns the cache key for wp_count_posts() based on the passed arguments.

Parameters 0 required

Name / Type Description
$type
string

Optional. Post type to retrieve count Default 'post'.

$perm
string

Optional. 'readable' or empty. Default empty.

Return Value

(string)
The cache key.

Function Information

Since Version
3.9.0
Source File
wp-includes/post.php
Advertisement