WordPress.org

Ready to get started?Download WordPress

Forums

Edit Author Slug
[resolved] User editable slugs (4 posts)

  1. Brooke Dukes
    Member
    Posted 3 years ago #

    Hi,

    Is there an easy way to enable users to edit their own slugs? I was able to add the table to the edit profile template but not sure how to safe that data.

    Another suggest would be to change the duplicate slug error from a wp_die() to use the WP_Error() class which is a little less abrasive.

    Thanks for this awesome plugin!

  2. Brandon Allen
    Member
    Plugin Author

    Posted 3 years ago #

    There wasn't an easy way until 0.7. I just tagged the new release so you should see an update notice in your Dashboard soon. I've included a file in the 'edit-author-slug/includes' folder named 'caps.php.' This file will give you a jumping off point to give other users the ability to edit their own slugs. If you have any further questions about how to implement this, please feel free to post here again. I'll leave this thread open for a while in case you do need help.

    As far as wp_die() statements, you're right. They can be abrasive. I was never really a fan, but the WP_Error class isn't really a viable option, and because of hook order, neither is the admin_notices hook. Also, the "Profile" and "User Edit" pages both make significant use of the wp_die() function. I have, however, found another way to handle this case through WP with a bit more, so we'll see how that goes.

  3. Brooke Dukes
    Member
    Posted 3 years ago #

    Thanks Brandon,

    I just updated to .07. It seems that I'm not able to edit author-slugs at all even as an admin. I don't recive an erro just nothing happens. Am I missing something here?

    Thanks for the support!

  4. Brandon Allen
    Member
    Plugin Author

    Posted 3 years ago #

    Out of curiosity, I tried the plugin on an install I hadn't previously tested before. Sure enough, I couldn't update the slug. I tracked it down to an overzealous capability check. I hadn't had the issue before, because, while testing, the new capability I talked about above hadn't been properly removed. Once that was cleared up, all my test installs refused to update. Anyway, the problem has been fixed, fingers crossed, in 0.7.2. Thanks for the feedback.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic