Automattic\WooCommerce\Admin\Notes

Notes::get_notes_count()public staticWC 1.0

Get the total number of notes

Метод класса: Notes{}

Хуков нет.

Возвращает

int.

Использование

$result = Notes::get_notes_count( $type, $status );
$type(строка)
Comma separated list of note types.
По умолчанию: array()
$status(строка)
Comma separated list of statuses.
По умолчанию: array()

Код Notes::get_notes_count() WC 8.7.0

public static function get_notes_count( $type = array(), $status = array() ) {
	$data_store = self::load_data_store();
	return $data_store->get_notes_count( $type, $status );
}