woocommerce_payment_gateway_enabled_notification_settings_url
Filters the payment gateway settings URL for the admin payment gateway enabled email.
Usage
add_filter( 'woocommerce_payment_gateway_enabled_notification_settings_url', 'wp_kama_woocommerce_payment_gateway_enabled_notification_settings_url_filter', 10, 2 );
/**
* Function for `woocommerce_payment_gateway_enabled_notification_settings_url` filter-hook.
*
* @param string $gateway_settings_url The payment gateway settings URL.
* @param WC_Payment_Gateway $gateway The payment gateway object.
*
* @return string
*/
function wp_kama_woocommerce_payment_gateway_enabled_notification_settings_url_filter( $gateway_settings_url, $gateway ){
// filter...
return $gateway_settings_url;
}
- $gateway_settings_url(string)
- The payment gateway settings URL.
- $gateway(WC_Payment_Gateway)
- The payment gateway object.
Changelog
| Since 10.7.0 | Introduced. |
Where the hook is called
woocommerce_payment_gateway_enabled_notification_settings_url
woocommerce/includes/emails/class-wc-email-admin-payment-gateway-enabled.php 137
$this->gateway_settings_url = apply_filters( 'woocommerce_payment_gateway_enabled_notification_settings_url', $this->gateway_settings_url, $gateway );