Automattic\WooCommerce\EmailEditor\Engine\PersonalizationTags

Personalization_Tag::execute_callbackpublicWC 1.0

Executes the callback function for the personalization tag.

Метод класса: Personalization_Tag{}

Хуков нет.

Возвращает

Строку. The value of the personalization tag.

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

$Personalization_Tag = new Personalization_Tag();
$Personalization_Tag->execute_callback( $context, $args ): string;
$context(разное) (обязательный)
The context for the personalization tag.
$args(массив)
The additional arguments for the callback.
По умолчанию: array()

Код Personalization_Tag::execute_callback() WC 10.0.2

public function execute_callback( $context, $args = array() ): string {
	return call_user_func( $this->callback, ...array_merge( array( $context ), array( $args ) ) );
}