Automattic\WooCommerce\Admin\Features\Blueprint\Exporters

ExportWCSettingsEmails{}WC 1.0

Class ExportWCSettingsProducts

This class exports WooCommerce settings and implements the StepExporter and HasAlias interfaces.

Хуков нет.

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

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

Методы

  1. public get_alias()
  2. public get_description()
  3. public get_label()
  4. protected get_page_id()

Заметки

  • Пакет: Automattic\WooCommerce\Admin\Features\Blueprint\Exporters

Код ExportWCSettingsEmails{} WC 9.8.5

class ExportWCSettingsEmails extends ExportWCSettings {
	use UseWPFunctions;

	/**
	 * Get the alias for this exporter.
	 *
	 * @return string
	 */
	public function get_alias() {
		return 'setWCSettingsEmails';
	}

	/**
	 * Return label used in the frontend.
	 *
	 * @return string
	 */
	public function get_label() {
		return __( 'Emails', 'woocommerce' );
	}

	/**
	 * Return description used in the frontend.
	 *
	 * @return string
	 */
	public function get_description() {
		return __( 'It includes all settings in WooCommerce | Settings | Emails.', 'woocommerce' );
	}

	/**
	 * Get the page ID for the settings page.
	 *
	 * @return string
	 */
	protected function get_page_id(): string {
		return 'email';
	}
}