Created
January 12, 2021 08:28
-
-
Save markjaquith/852c716b06df15aea6bf07e1161bbb91 to your computer and use it in GitHub Desktop.
Revisions
-
markjaquith created this gist
Jan 12, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ <?php // Block the ACF settings UI entirely, except on local dev. if (! defined('WP_LOCAL_DEV') || ! WP_LOCAL_DEV) { add_filter('acf/settings/show_admin', '__return_false'); add_filter('acf/settings/capability', function () { return 'do_not_allow'; }); }