Yoast_Notification_Center::add_transaction_to_queue()privateYoast 1.0

Adds a notification transaction to the queue for later execution.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

// private - только в коде основоного (родительского) класса
$result = $this->add_transaction_to_queue( $callback, $args );
$callback(callable) (обязательный)
Callback that performs the transaction.
$args(массив) (обязательный)
Arguments to pass to the callback.

Код Yoast_Notification_Center::add_transaction_to_queue() Yoast 22.4

private function add_transaction_to_queue( $callback, $args ) {
	$this->queued_transactions[] = [ $callback, $args ];
}