Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

ExtendStore{}WC 1.0

ExtendStore Task

No Hooks.

Usage

$ExtendStore = new ExtendStore();
// use class methods

Methods

  1. public get_action_url()
  2. public get_content()
  3. public get_id()
  4. public get_time()
  5. public get_title()
  6. public is_complete()
  7. public is_dismissable()

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' );
	}
}