Logout with hidden URL for Menu. Is it possible with CLASSES?
-
I need help to create a Logout Function for the top menu, it must hide the Url that would be “wp-login.php” and point to home.
I suppose it could be done using a class that loads a function from wp_logout, so through the class I could load the function from the WordPress menu, and it would disconnect the user when clicking on the Logout button.
The problem is that I have been searching the internet for days and there is no function to disconnect a user hiding the url through a class, I am also a newbie and I can not achieve it with incomplete codes. If someone is able to create a function that solves this problem, I will be grateful with all my heart, with such a feat your NAME will be remembered over time ?
Probably useful functions:
Pastebin here
- The topic ‘Logout with hidden URL for Menu. Is it possible with CLASSES?’ is closed to new replies.