Hi,
I am sorry about this. The function is not available now.
I am curious about this issue as well. @augustus09 are you saying that there is no way to add a ‘logout’ button or link to the lp-profile dashboard? Once logged in, how is a user supposed to logout???
Thanks…
What do you mean this function is not available now? It’s a basic security function lol.
edit. You just need to put it in the Profile menu
-
This reply was modified 1 year, 8 months ago by
phatman.
OK, I had a look at the code. You need to edit the LearnPress plugin to add a sticky logout to the top of the lefthand menu:
/wp-content/plugins/learnpress/templates/profile/profile-cover.php
Ideally to prevent it being over written copy this page and put it in your child theme folder, if you have one, in /learnpress/profile/ folder (…or backup the page!)
Now edit profile-cover.php add the following after line 22 (i.e. after the avatar class div)
<div style="margin-left:1em"><?php echo sprintf( __( '%s', 'learnpress' ), sprintf( '<a href="%s">%s</a>', $profile->logout_url(), __( 'Logout', 'learnpress' ) ) ); ?></div>
Sesason to suit and serve warm 🙂
-
This reply was modified 1 year, 8 months ago by
phatman.