New answers tagged registration
I'd figure, it mainly is not advised, because it is intended just to use it for built-in post types, just because you can use for custom post types it does not change anything on that intention. For example, if you use it and there are changes in WordPress that make that arguments use strictly available for built-in post types, then you are in trouble. ...
I have similar functionality on one of my app. I used wp_set_auth_cookie(). Remove the custom_login() function and use wp_set_auth_cookie($user_id) in its place.
If you are registering the styles/scripts, then you will be setting all the parameters at that point. No need to pass them all again when enqueuing - by then you will only need to pass the handle. If you are definitely only going to call your styles/scripts in one place, then you can skip the registration entirely. Instead, just enqueue, and pass all the ...
Top 50 recent answers are included