Skip to content

Commit

Permalink
Update advanced-custom-fields.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MWDelaney authored Apr 12, 2018
1 parent 19d2359 commit 277c76c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions advanced-custom-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
* Author: Michael W. Delaney
*/


// Hide ACF menu item in Production
if (WP_ENV == 'production') {
add_filter('acf/settings/show_admin', '__return_false');
}


/**
* Set local json save path
* @param string $path unmodified local path for acf-json
Expand Down

0 comments on commit 277c76c

Please sign in to comment.