woocommerce_hide_redirect_method_nag filter-hookWC 4.0

Notice about Redirect-Only download method.

Usage

add_filter( 'woocommerce_hide_redirect_method_nag', 'wp_kama_woocommerce_hide_redirect_method_nag_filter' );

/**
 * Function for `woocommerce_hide_redirect_method_nag` filter-hook.
 * 
 * @param  $user_meta 
 *
 * @return 
 */
function wp_kama_woocommerce_hide_redirect_method_nag_filter( $user_meta ){

	// filter...
	return $user_meta;
}
$user_meta
-

Changelog

Since 4.0 Introduced.

Where the hook is called

WC_Admin_Notices::redirect_download_method_notice()
woocommerce_hide_redirect_method_nag
woocommerce/includes/admin/class-wc-admin-notices.php 668
if ( apply_filters( 'woocommerce_hide_redirect_method_nag', get_user_meta( get_current_user_id(), 'dismissed_redirect_download_method_notice', true ) ) ) {

Where the hook is used in WooCommerce

Usage not found.