Automattic\WooCommerce\Internal\Admin\Settings
PaymentsController::handle_incentive_dismissed
Handle the payments extension suggestion incentive dismissed event.
Метод класса: PaymentsController{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$PaymentsController = new PaymentsController(); $PaymentsController->handle_incentive_dismissed(): void;
Код PaymentsController::handle_incentive_dismissed() PaymentsController::handle incentive dismissed WC 11.1.0
public function handle_incentive_dismissed(): void {
// Clear the transient to force a new check for providers with an incentive.
delete_transient( self::TRANSIENT_HAS_PROVIDERS_WITH_INCENTIVE_KEY );
}