Automattic\WooCommerce\Internal\Admin\Onboarding

OnboardingFonts::start_install_fonts_async_job()public staticWC 1.0

Start install fonts async job.

Method of the class: OnboardingFonts{}

No Hooks.

Return

String.

Usage

$result = OnboardingFonts::start_install_fonts_async_job( $old_value, $value );
$old_value(string) (required)
Old option value.
$value(string) (required)
Option value.

OnboardingFonts::start_install_fonts_async_job() code WC 9.3.3

public static function start_install_fonts_async_job( $old_value, $value ) {
	if ( 'yes' !== $value || ! class_exists( 'WP_Font_Library' ) ) {
		return;
	}
	WC()->call_function(
		'as_schedule_single_action',
		WC()->call_function( 'time' ),
		'woocommerce_install_assembler_fonts',
	);
}