Update content and timing of NeedSomeInspiration.php. (https://github.com/woocommerce/woocommerce-admin/pull/6076)

This commit is contained in:
Sam Seay 2021-01-18 09:27:10 +13:00 committed by GitHub
parent 24ccd6803b
commit 2f1946b408
2 changed files with 7 additions and 4 deletions

View File

@ -71,6 +71,9 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt
2. Activity Panels 2. Activity Panels
3. Analytics 3. Analytics
== Unreleased ==
- Tweak: update the content and timing of the NeedSomeInspiration note. #6076
== Changelog == == Changelog ==
== 1.9.0 1/15/2021 == == 1.9.0 1/15/2021 ==

View File

@ -29,8 +29,8 @@ class NeedSomeInspiration {
* @return Note * @return Note
*/ */
public static function get_note() { public static function get_note() {
// We want to show the note after five days. // We want to show the note after 4 days.
if ( ! self::wc_admin_active_for( 5 * DAY_IN_SECONDS ) ) { if ( ! self::wc_admin_active_for( 4 * DAY_IN_SECONDS ) ) {
return; return;
} }
@ -56,8 +56,8 @@ class NeedSomeInspiration {
} }
$note = new Note(); $note = new Note();
$note->set_title( __( 'Do you need some inspiration?', 'woocommerce-admin' ) ); $note->set_title( __( 'Browse our success stories', 'woocommerce-admin' ) );
$note->set_content( __( 'Check some of our favorite customer stories from entrepreneurs, agencies, and developers in our global community.', 'woocommerce-admin' ) ); $note->set_content( __( 'Learn more about how other entrepreneurs used WooCommerce to build successful businesses.', 'woocommerce-admin' ) );
$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL ); $note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
$note->set_name( self::NOTE_NAME ); $note->set_name( self::NOTE_NAME );
$note->set_content_data( (object) array() ); $note->set_content_data( (object) array() );