WordPress.org

Ready to get started?Download WordPress

Forums

Hack to retrieve $userid in edit_user_profile plugin actions (1 post)

  1. scottkillen
    Member
    Posted 8 years ago #

    WordPress should pass $userid to registered edit_user_profile actions, because not doing so makes these actions effectively benign.

    To make use the userid in these actions, add the following code near the beginning of your plugin procedure:

    ereg('=([0-9]+)$', $_SERVER['REQUEST_URI'], $userid);

Topic Closed

This topic has been closed to new replies.

About this Topic