Habari\Posts::count_total PHP Метод

count_total() публичный статический Метод

static count_total return a count for the total number of posts
public static count_total ( mixed $status = false ) : integer
$status mixed a status value to filter posts by; if false, then no filtering will be performed
Результат integer the number of posts of specified type ( published or draft )
    public static function count_total($status = false)
    {
        $params = array('count' => 1);
        if ($status !== false) {
            $params['status'] = $status;
        }
        return self::get($params);
    }