Automattic\WooCommerce\Internal\Admin\Notes
PaymentsMoreInfoNeeded::should_display_note()
Returns true if we should display the note.
Method of the class: PaymentsMoreInfoNeeded{}
No Hooks.
Return
true|false
.
Usage
$result = PaymentsMoreInfoNeeded::should_display_note();
PaymentsMoreInfoNeeded::should_display_note() PaymentsMoreInfoNeeded::should display note code WC 9.7.1
public static function should_display_note() { // A WooPayments incentive must not be visible. if ( WcPayWelcomePage::instance()->has_incentive() ) { return false; } // More than 30 days since viewing the welcome page. $exit_survey_timestamp = get_option( 'wcpay_welcome_page_exit_survey_more_info_needed_timestamp', false ); if ( ! $exit_survey_timestamp || ( time() - $exit_survey_timestamp < 30 * DAY_IN_SECONDS ) ) { return false; } return true; }