Automattic\WooCommerce\Blueprint\Exporters

StepExporter{}interfaceWC 1.0

Interface StepExporter

A Step Exporter is responsible collecting data needed for a Step object and exporting it. Refer to the Step class for the data needed as each step may require different data.

Хуков нет.

Использование

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

Методы

  1. public check_step_capabilities()
  2. public export()
  3. public get_step_name()

Код StepExporter{} WC 10.0.2

interface StepExporter {
	/**
	 * Collect data needed for a Step object and export it.
	 *
	 * @return Step
	 */
	public function export();

	/**
	 * Returns the name of the step class it exports.
	 *
	 * @return string
	 */
	public function get_step_name();

	/**
	 * Check if the current user has the required capabilities for this step.
	 *
	 * @return bool True if the user has the required capabilities. False otherwise.
	 */
	public function check_step_capabilities(): bool;
}