Automattic\WooCommerce\Admin\Notes
DataStore::get_notes_with_name()
Find all the notes with a given name.
Метод класса: DataStore{}
Хуков нет.
Возвращает
Массив
. An array of matching note ids.
Использование
$DataStore = new DataStore(); $DataStore->get_notes_with_name( $name );
- $name(строка) (обязательный)
- Name to search for.
Код DataStore::get_notes_with_name() DataStore::get notes with name WC 8.7.0
public function get_notes_with_name( $name ) { global $wpdb; return $wpdb->get_col( $wpdb->prepare( "SELECT note_id FROM {$wpdb->prefix}wc_admin_notes WHERE name = %s ORDER BY note_id ASC", $name ) ); }