Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

StoreCreation{}WC 1.0

Store Details Task

No Hooks.

Usage

$StoreCreation = new StoreCreation();
// 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_disabled()

StoreCreation{} code WC 8.7.0

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