acf/admin/show_email_opt_in_banner filter-hookACF 6.8.6

Filters whether the ACF Free email opt-in banner should be shown.

Usage

add_filter( 'acf/admin/show_email_opt_in_banner', 'wp_kama_acf_admin_show_email_opt_in_banner_filter' );

/**
 * Function for `acf/admin/show_email_opt_in_banner` filter-hook.
 * 
 * @param boolean $show Whether to show the banner.
 *
 * @return boolean
 */
function wp_kama_acf_admin_show_email_opt_in_banner_filter( $show ){
	// filter...
	return $show;
}
$show(true|false)
Whether to show the banner.

Changelog

Since 6.8.6 Introduced.

Where the hook is called

ACF_Admin_Email_Opt_In_Banner::should_show()
acf/admin/show_email_opt_in_banner
acf/includes/admin/admin-email-opt-in-banner.php 104
return (bool) apply_filters( 'acf/admin/show_email_opt_in_banner', $default );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.