Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Batch creating users

Discussion in 'Misc WordPress Requests' started by bcworkz, Nov 1, 2017.

  1. bcworkz

    Guest

    Reply To: Batch creating users, by bcworkz

    You can go through the core login process source and identify all the filter and action hooks that fire during the process. Then have your code apply the filters and do all the actions. In each case you’ll need to pass the same information that the core code passes. I don’t know how feasible this would be. It will serve to execute any code that plugins or themes have hooked into the process, but of course the actual core login code is not executed.

    At least the core code is well defined and predictable, so one way or another you can cover what’s accomplished by core code without actually logging in. It’s the unknown theme and plugin code that’s a mystery. Firing off all the filters and actions causes this code to execute even if you do not know what that code might be.

    Ideally, you know what code you need to execute during a login. Then you can just call the related functions directly without blindly going through all the filter and action hooks. This could save you from needing to gather information to pass to callbacks that is never used.

    Reply To: Batch creating users
     
    #1

Share This Page

Web Hosting