WordPress at a glance
function is not described


DataStore::get_notes_with_name() public WC 1.0

Find all the notes with a given name.

{} It's a method of the class: DataStore{}

No Hooks.


Array. An array of matching note ids.


$DataStore = new DataStore();
$DataStore->get_notes_with_name( $name );
$name(string) (required)
Name to search for.

Code of DataStore::get_notes_with_name() WC 5.2.2

public function get_notes_with_name( $name ) {
	global $wpdb;
	return $wpdb->get_col(
			"SELECT note_id FROM {$wpdb->prefix}wc_admin_notes WHERE name = %s ORDER BY note_id ASC",