Automattic\WooCommerce\Internal\Admin\Settings
Payments::dismiss_extension_suggestion_incentive()
Dismiss a payment extension suggestion incentive.
Метод класса: Payments{}
Хуков нет.
Возвращает
true|false
. True if the incentive was not previously dismissed and now it is. False if the incentive was already dismissed or could not be dismissed.
Использование
$Payments = new Payments(); $Payments->dismiss_extension_suggestion_incentive( $suggestion_id, $incentive_id, $context ): bool;
- $suggestion_id(строка) (обязательный)
- The suggestion ID.
- $incentive_id(строка) (обязательный)
- The incentive ID.
- $context(строка)
- The context in which the incentive should be dismissed.
По умолчанию: to dismiss the incentive in all contexts
Код Payments::dismiss_extension_suggestion_incentive() Payments::dismiss extension suggestion incentive WC 9.6.1
public function dismiss_extension_suggestion_incentive( string $suggestion_id, string $incentive_id, string $context = 'all' ): bool { return $this->extension_suggestions->dismiss_incentive( $incentive_id, $suggestion_id, $context ); }