Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
StoreCreation{}└─ Task
Store Details Task
No Hooks.
Usage
$StoreCreation = new StoreCreation(); // use class methods
Methods
- public get_action_url()
- public get_content()
- public get_id()
- public get_time()
- public get_title()
- public is_complete()
- public is_disabled()
StoreCreation{} StoreCreation{} code WC 10.6.2
class StoreCreation extends Task {
/**
* ID.
*
* @return string
*/
public function get_id() {
return 'store_creation';
}
/**
* Title.
*
* @return string
*/
public function get_title() {
/* translators: Store name */
return sprintf( __( 'You created %s', 'woocommerce' ), get_bloginfo( 'name' ) );
}
/**
* Content.
*
* @return string
*/
public function get_content() {
return '';
}
/**
* Time.
*
* @return string
*/
public function get_time() {
return '';
}
/**
* Time.
*
* @return string
*/
public function get_action_url() {
return '';
}
/**
* Task completion.
*
* @return bool
*/
public function is_complete() {
return true;
}
/**
* Check if task is disabled.
*
* @return bool
*/
public function is_disabled() {
return true;
}
}