Automattic\WooCommerce\Internal\Admin\Settings

Payments::hide_payment_extension_suggestion()publicWC 1.0

Hide a payment extension suggestion.

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

Хуков нет.

Возвращает

true|false. True if the suggestion was successfully hidden, false otherwise.

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

$Payments = new Payments();
$Payments->hide_payment_extension_suggestion( $id ): bool;
$id(строка) (обязательный)
The ID of the payment extension suggestion to hide.

Код Payments::hide_payment_extension_suggestion() WC 9.6.1

public function hide_payment_extension_suggestion( string $id ): bool {
	return $this->providers->hide_extension_suggestion( $id );
}