WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just have a quick question... I am using the Advanced Custom Fields plugin on a site for a costumer, just to get a little more power into it.... but I wouldn't want the client to be poking around in there, and get all confused... is there an easy none-obtrusive way to sort of hide the options from the end user, bdut still keep the functionality around? I'm guessing a more generic google search would probably help me out, but it would be great to just get some feedback from u guys :)

-cheers kriwis

share|improve this question
Welcome to WPSE :) First: This site is no replacement for a google search. Second, there're support routes for this plugin. – kaiser Mar 20 '13 at 12:03

This looks like a very similar question. Take a look at @brasofilo's answer, you can modify for your own needs.

There are a couple of ways you could approach this: you could set up a custom role for your client's user accounts, giving them all the rights of an admin. Add a capability to the main admin role ($role = get_role("admin"); $role->add_cap("edit_acf_fields",)), then using these hooks to check for that role and deny access.

$current_user = get_current_user();

// If the user doesn't have the capability, no editing ACF settings.
if ( !$current_user->has_cap("edit_acf_fields") {
    // hide the menus
    // or kill the screens

The main reason to do this is portability. You (or the client) might want someone else to work on their site one day, they'll need their own account. More complex, but the recommended solution.

Alternatively, you can just check for your own email address and call it a day:

$current_user = get_current_user();

if ( $current_user->user_email == "yourEmail@example.com" ) {
    // hide the menus
    // or kill the screens

This is essentially invoking magic numbers, as an editing screen appears or disappears based on who you are, and there's no obvious explanation or way to change that behavior to the user. Easy, but Not Recommended.

share|improve this answer
thanks for the responses Much appreciated! I realize that i could have done a better job googling. To be honest this problem was yanking my chain to a insane degree, so I basically jumped the gun to ask, after not finding what i was looking for for a while.. thanks again for being so helpful, despite the fact that I kind of disregarded etiquette on this one. Won't happen again ;) (all too often) – Kristoffer S Mar 22 '13 at 7:34

Yes! There's the Advanced Custom Fields Lite plugin that gives you all options without any Menu.

You just need to export fields that you created using the normal ACF plugin.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.