WordPress.org

Ready to get started?Download WordPress

Forums

Adminimize
[resolved] How to Add Own ID or Class (3 posts)

  1. Gtantra
    Member
    Posted 2 years ago #

    Hi My theme , has an added option which is an additional set or tools in the add posts/ pages toolbar. And that has to be hidden for Authors and Contributers.

    I basically want to deactivate that for Author's and contributors.
    So how do I Add that custom field .

    http://wordpress.org/extend/plugins/adminimize/

    edit I went through the forum and found the solution

  2. Frank
    Member
    Plugin Author

    Posted 2 years ago #

    see the readem, he have an hint for this question
    http://wordpress.org/extend/plugins/adminimize/other_notes/

  3. haagsekak
    Member
    Posted 2 years ago #

    I have the flowing code on the user profile that comes from another plugin, but I want to hide it from all users except the admin. I tried to create the custom option and was able to remove the text field but not the field label. Can you please provide some assistance? Thanks.

    <table class="form-table">
    <tbody>
    <tr valign="top">
    <th scope="row">
    <label for="awpcp-profile-address">Address</label>
    </th>
    <td>
    <input id="awpcp-profile-address" class="regular-text" type="text" value="" name="awpcp-profile[address]">
    <span class="description" style="display: none;"></span>
    </td>
    </tr>
    <tr valign="top">
    <th scope="row">
    <label for="awpcp-profile-state">State</label>
    </th>
    <td>
    <input id="awpcp-profile-state" class="regular-text" type="text" value="" name="awpcp-profile[state]">
    <span class="description" style="display: none;"></span>
    </td>
    </tr>
    <tr valign="top">
    <th scope="row">
    <label for="awpcp-profile-city">City</label>
    </th>
    <td>
    <input id="awpcp-profile-city" class="regular-text" type="text" value="" name="awpcp-profile[city]">
    <span class="description" style="display: none;"></span>
    </td>
    </tr>
    </tbody>
    </table>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.