Automattic\WooCommerce\Admin\Notes
Notes::get_note()
Get admin note using it's ID
Method of the class: Notes{}
No Hooks.
Return
Note|true|false
.
Usage
$result = Notes::get_note( $note_id );
- $note_id(int) (required)
- Note ID.
Notes::get_note() Notes::get note code WC 9.7.1
public static function get_note( $note_id ) { if ( false !== $note_id ) { try { return new Note( $note_id ); } catch ( \Exception $e ) { wc_caught_exception( $e, __CLASS__ . '::' . __FUNCTION__, array( $note_id ) ); return false; } } return false; }