Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks
ExtendStore{}
ExtendStore Task
No Hooks.
Usage
$ExtendStore = new ExtendStore(); // 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_dismissable()
ExtendStore{} ExtendStore{} code WC 9.6.1
class ExtendStore extends Task { /** * ID. * * @return string */ public function get_id() { return 'extend-store'; } /** * Title. * * @return string */ public function get_title() { return __( 'Enhance your store with extensions', 'woocommerce' ); } /** * Content. * * @return string */ public function get_content() { return ''; } /** * Time. * * @return string */ public function get_time() { return ''; } /** * Task completion. * * @return bool */ public function is_complete() { return $this->is_visited(); } /** * Always dismissable. * * @return bool */ public function is_dismissable() { return false; } /** * Action URL. * * @return string */ public function get_action_url() { return admin_url( 'admin.php?page=wc-admin&path=/extensions' ); } }