acf/admin/show_email_opt_in_banner
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/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 );