Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
StoreCreation{}
Store Details Task
Хуков нет.
Использование
$StoreCreation = new StoreCreation(); // use class 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{} WC 9.8.1
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; } }