Automattic\WooCommerce\Internal\Admin\Notes
MagentoMigration::possibly_add_note()
Add the note if it passes predefined conditions.
Method of the class: MagentoMigration{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = MagentoMigration::possibly_add_note();
MagentoMigration::possibly_add_note() MagentoMigration::possibly add note code WC 9.6.1
public static function possibly_add_note() { $onboarding_profile = get_option( OnboardingProfile::DATA_OPTION, array() ); if ( empty( $onboarding_profile ) ) { return; } if ( ! isset( $onboarding_profile['other_platform'] ) || 'magento' !== $onboarding_profile['other_platform'] ) { return; } if ( ! isset( $onboarding_profile['setup_client'] ) || $onboarding_profile['setup_client'] ) { return; } WC()->queue()->schedule_single( time() + ( 5 * MINUTE_IN_SECONDS ), 'woocommerce_admin_magento_migration_note' ); }