File "LaunchYourStore.php"
Full Path: /home/londdqdw/public_html/06/wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/LaunchYourStore.php
File size: 1.29 KB
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks;
use Automattic\WooCommerce\Admin\Features\Features;
use Automattic\WooCommerce\Admin\Features\OnboardingTasks\Task;
/**
* Launch Your Store Task
*/
class LaunchYourStore extends Task {
/**
* ID.
*
* @return string
*/
public function get_id() {
return 'launch_your_store';
}
/**
* Title.
*
* @return string
*/
public function get_title() {
return __( 'Launch your store', 'woocommerce' );
}
/**
* Content.
*
* @return string
*/
public function get_content() {
return __(
"It's time to celebrate – you're ready to launch your store! Woo! Hit the button to preview your store and make it public.",
'woocommerce'
);
}
/**
* Time.
*
* @return string
*/
public function get_time() {
return '';
}
/**
* Task completion.
*
* @return bool
*/
public function is_complete() {
$launch_status = get_option( 'launch-status' );
// The site is launched when the launch status is 'launched' or missing.
$launched_values = array(
'launched',
'',
false,
);
return in_array( $launch_status, $launched_values, true );
}
/**
* Task visibility.
*
* @return bool
*/
public function can_view() {
return Features::is_enabled( 'launch-your-store' );
}
}