Automattic\WooCommerce\Admin\Notes
Notes::get_notes_count
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() Notes::get notes count WC 11.2.2
public static function get_notes_count( $type = array(), $status = array() ) {
$data_store = self::load_data_store();
return $data_store->get_notes_count( $type, $status );
}