wp_cache_post_id() WPSCache 1.0
Хуков нет.
Возвращает
Null. Ничего.
Использование
wp_cache_post_id();
Код wp_cache_post_id() wp cache post id WPSCache 1.7.1
function wp_cache_post_id() {
global $posts, $comment_post_ID, $post_ID;
// We try hard all options. More frequent first.
if ($post_ID > 0 ) return $post_ID;
if ($comment_post_ID > 0 ) return $comment_post_ID;
if (is_singular() && !empty($posts)) return $posts[0]->ID;
if (isset( $_GET[ 'p' ] ) && $_GET['p'] > 0) return $_GET['p'];
if (isset( $_POST[ 'p' ] ) && $_POST['p'] > 0) return $_POST['p'];
return 0;
}