Automattic\WooCommerce\Internal\Admin\Settings
Payments::hide_payment_extension_suggestion
Hide a payment extension suggestion.
Method of the class: Payments{}
No Hooks.
Returns
true|false. True if the suggestion was successfully hidden, false otherwise.
Usage
$Payments = new Payments(); $Payments->hide_payment_extension_suggestion( $id ): bool;
- $id(string) (required)
- The ID of the payment extension suggestion to hide.
Payments::hide_payment_extension_suggestion() Payments::hide payment extension suggestion code WC 10.9.4
public function hide_payment_extension_suggestion( string $id ): bool {
$result = $this->providers->hide_extension_suggestion( $id );
if ( $result ) {
// Record an event that the suggestion was hidden.
$this->record_event(
'extension_suggestion_hidden',
array(
'suggestion_id' => $id,
)
);
}
return $result;
}