• Hello,

    I am hoping that someone can help me out here. I am looking for a way to create a user defined field that will not show up on my product web pages, and won’t sync to Amazon and eBay by using the WPLister for Amazon and eBay.

    I would like to create a field that holds the name of who our products are purchased from. I have over 10 thousand products and it’s kind of a nightmare for my purchasing agent to remember who we purchase individual products from.

    So, from an admin side of things, the purchasing agent will be able to view this field by either going in to “edit” a product, or by using the CSV Export tool, which would then show where the product is purchased from.

    I suppose what it comes down to is how do I create a user defined field that only “admins” can see?

    Thank you for any respones,
    Don Meisner
    Dollhouses and More, LLC
    dollhousesandmore.com

Viewing 1 replies (of 1 total)
  • wrap the field in something like this

    <?php if (current_user_can( 'manage_options' )) {
            echo $your_custom_field;
     } ?>

    now only users who are logged in and have a role of ‘admin’ will see it.

Viewing 1 replies (of 1 total)
  • The topic ‘User defined fields for only admin to see’ is closed to new replies.