Title: Help, added code, changed it, but old code still there
Last modified: November 29, 2020

---

# Help, added code, changed it, but old code still there

 *  Resolved [thatfitgirl](https://wordpress.org/support/users/thatfitgirl/)
 * (@thatfitgirl)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/help-added-code-changed-it-but-old-code-still-there/)
 * Hi,
 * I used the following code to add users/members
 * // Add a custom user role
 * $result = add_role( ‘paid_member’, __(
    ‘Paid Member’ ), array( ) );
 * I changed my mind and wanted to change paid member to something else.
 * I did that and now paid member as well as the new name is listed under users 
   and I don’t want paid member to be an option when my customers look at the options.
   I want to know how I can remove it, as I can’t see where it is.
 * No coding background – obviously, so if someone could explain in the most simple
   way possible – e.g. the way you’d explain to a 4yo.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/help-added-code-changed-it-but-old-code-still-there/#post-13723878)
 * Adding and removing roles are actions which only need to happen once – not every
   time a page is loaded – so they should only really be used in ‘only run once’
   snippets.
 * If you’d like to delete the role you added, you can use this code in an ‘only
   run once’ snippet:
 *     ```
       remove_role( 'paid_member' );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Help, added code, changed it, but old code still there’ is closed to 
new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

## Tags

 * [snippet](https://wordpress.org/support/topic-tag/snippet/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/help-added-code-changed-it-but-old-code-still-there/#post-13723878)
 * Status: resolved