Automattic\WooCommerce\Admin\Notes
NavigationFeedback::get_note() public WC 1.0
Get the note.
{} Это метод класса: NavigationFeedback{}
Хуков нет.
Возвращает
Note.
Использование
$result = NavigationFeedback::get_note();
Код NavigationFeedback::get_note() NavigationFeedback::get note WC 5.0.0
public static function get_note() {
if ( ! Loader::is_feature_enabled( 'navigation' ) ) {
return;
}
$content = __( "We're introducing the new navigation for a more intuitive and improved user experience. We'd like to hear your thoughts and first impressions.", 'woocommerce' );
$note = new Note();
$note->set_title( __( 'You now have access to the new WooCommerce navigation', 'woocommerce' ) );
$note->set_content( $content );
$note->set_content_data( (object) array() );
$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
$note->set_name( self::NOTE_NAME );
$note->set_source( 'woocommerce-admin' );
$note->add_action( 'share-feedback', __( 'Share feedback', 'woocommerce' ), 'https://automattic.survey.fm/new-navigation' );
return $note;
}