WordPress.org

Ready to get started?Download WordPress

Forums

add_role() issue (2 posts)

  1. MegaToon Tv
    Member
    Posted 1 year ago #

    Hi,

    I have successfully added a new role via a php function that I added in functions.php. My problem is when you go to users list : /wp-admin/users.php

    Role column, and the new role is not the same. For example on this image:
    http://goo.gl/2iOIB

    This is what it should be. The Role Column (with red circle) and the New role (with yellow highlight) should be the same. Using the add_role() function only adds the New Role while the Role Column stays the same as the default, which is "Subscriber".

    I'm not sure what you call that name in the Role Column but any of you know what I need to add in my function so it would also change? I need it to be the same coz if it's not, simplepress forum does not recognize the new role.

    Thanks in advance!

  2. MegaToon Tv
    Member
    Posted 1 year ago #

    I forgot to add the link for the function. Here is what I am referring to:
    http://codex.wordpress.org/Function_Reference/add_role

Topic Closed

This topic has been closed to new replies.

About this Topic