Code Element He
Hide ACF Menu by Environment with Roots Sage & Trellis
Use this filter to hide the ACF menu on Staging and Production environments in Trellis.
// Hide ACF menu on Production & Staging
if (defined('WP_ENV') && (WP_ENV == 'production' || WP_ENV == 'staging')) {
add_filter('acf/settings/show_admin', '__return_false');
}