WordPress at a glance
function is not described


GivingFeedbackNotes::get_note() protected WC 1.0

Get the note.

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

No Hooks.


Note. Nothing.


$result = GivingFeedbackNotes::get_note();

Code of GivingFeedbackNotes::get_note() WC 5.3.0

protected static function get_note() {
	// We need to show Admin Giving feeback notification after 8 days of install.
	$eight_days_in_seconds = 8 * DAY_IN_SECONDS;
	if ( ! self::wc_admin_active_for( $eight_days_in_seconds ) ) {

	// Otherwise, create our new note.
	$note = new Note();
	$note->set_title( __( 'You\'re invited to share your experience', 'woocommerce' ) );
	$note->set_content( __( 'Now that you’ve chosen us as a partner, our goal is to make sure we\'re providing the right tools to meet your needs. We\'re looking forward to having your feedback on the store setup experience so we can improve it in the future.', 'woocommerce' ) );
	$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' );
		__( 'Share feedback', 'woocommerce' ),
		Survey::get_url( '/store-setup-survey' )
	return $note;