WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
класс не описан

Automattic\WooCommerce\Blocks\Payments

PaymentMethodTypeInterface{} WC 1.0

Хуков нет.

Возвращает

Null. Ничего.

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

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

Методы

  1. get_name()
  2. get_payment_method_data()
  3. get_payment_method_script_handles()
  4. get_payment_method_script_handles_for_admin()
  5. initialize()
  6. is_active()

Код PaymentMethodTypeInterface{} WC 4.6.1

<?php
interface PaymentMethodTypeInterface {
	/**
	 * The name of the payment method
	 *
	 * @return string
	 */
	public function get_name();

	/**
	 * Returns if this payment method should be active. If false, the scripts will not be enqueued.
	 *
	 * @return boolean
	 */
	public function is_active();

	/**
	 * When called invokes any initialization/setup for the payment method type
	 * instance.
	 */
	public function initialize();

	/**
	 * Returns an array of script handles to enqueue for this payment method in
	 * the frontend context
	 *
	 * @return string[]
	 */
	public function get_payment_method_script_handles();

	/**
	 * Returns an array of script handles to enqueue for this payment method in
	 * the admin context
	 *
	 * @return string[]
	 */
	public function get_payment_method_script_handles_for_admin();

	/**
	 * An array of key, value pairs of data made available to payment methods
	 * client side.
	 *
	 * @return array
	 */
	public function get_payment_method_data();
}