What is the global $wp object used for?
Question
In the wordpress documentation for Global Variables, I did not find information about the $wp global variable.
I found a plugin which declares the global $wp variable as follows:
public function login_form(){
global $wp;
...
}
But this variable is never used inside the declared function, so I wonder what is going on.
The entire function can be found here (links to the exact line in the GitHub WordPress Frontend Profile plugin)
0
globals
3 years
2020-07-16T10:10:26-05:00
2020-07-16T10:10:26-05:00 0 Answers
57 views
0
Leave an answer