Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/woocomme.../src/Internal/Admin/Notes
File: GivingFeedbackNotes.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WooCommerce Admin (Dashboard) Giving feedback notes provider
[2] Fix | Delete
*
[3] Fix | Delete
* Adds notes to the merchant's inbox about giving feedback.
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
namespace Automattic\WooCommerce\Internal\Admin\Notes;
[7] Fix | Delete
[8] Fix | Delete
defined( 'ABSPATH' ) || exit;
[9] Fix | Delete
[10] Fix | Delete
use Automattic\WooCommerce\Admin\Notes\Note;
[11] Fix | Delete
use Automattic\WooCommerce\Admin\Notes\NoteTraits;
[12] Fix | Delete
use Automattic\WooCommerce\Internal\Admin\Survey;
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* Giving_Feedback_Notes
[16] Fix | Delete
*/
[17] Fix | Delete
class GivingFeedbackNotes {
[18] Fix | Delete
/**
[19] Fix | Delete
* Note traits.
[20] Fix | Delete
*/
[21] Fix | Delete
use NoteTraits;
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Name of the note for use in the database.
[25] Fix | Delete
*/
[26] Fix | Delete
const NOTE_NAME = 'wc-admin-store-notice-giving-feedback-2';
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* Get the note.
[30] Fix | Delete
*
[31] Fix | Delete
* @return Note
[32] Fix | Delete
*/
[33] Fix | Delete
public static function get_note() {
[34] Fix | Delete
if ( ! self::is_wc_admin_active_in_date_range( 'week-1-4' ) ) {
[35] Fix | Delete
return;
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
// Otherwise, create our new note.
[39] Fix | Delete
$note = new Note();
[40] Fix | Delete
$note->set_title( __( 'You\'re invited to share your experience', 'woocommerce' ) );
[41] Fix | Delete
$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' ) );
[42] Fix | Delete
$note->set_content_data( (object) array() );
[43] Fix | Delete
$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
[44] Fix | Delete
$note->set_name( self::NOTE_NAME );
[45] Fix | Delete
$note->set_source( 'woocommerce-admin' );
[46] Fix | Delete
$note->add_action(
[47] Fix | Delete
'share-feedback',
[48] Fix | Delete
__( 'Share feedback', 'woocommerce' ),
[49] Fix | Delete
Survey::get_url( '/store-setup-survey' )
[50] Fix | Delete
);
[51] Fix | Delete
return $note;
[52] Fix | Delete
}
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function