Automattic\WooCommerce\Gateways\PayPal
Notices::get_dismiss_url
Get the dismiss URL for a notice.
Method of the class: Notices{}
No Hooks.
Returns
String.
Usage
// private - for code of main (parent) class only $result = $this->get_dismiss_url( $notice_name ): string;
- $notice_name(string) (required)
- The name of the notice.
Changelog
| Since 10.5.0 | Introduced. |
Notices::get_dismiss_url() Notices::get dismiss url code WC 10.7.0
private function get_dismiss_url( string $notice_name ): string {
return wp_nonce_url(
add_query_arg( 'wc-hide-notice', $notice_name ),
'woocommerce_hide_notices_nonce',
'_wc_notice_nonce'
);
}