Skip to:
Content
Pages
Categories
Search
Top
Bottom

shortcodes to sign out


  • EmilieMarie
    Participant

    @emiliemarie

    Hello,

    It’s my first time on this forum…
    This is my problem :
    I don’t want to insert a Connection widget on a side bar.I’d rather like to use short codes.
    I already know these following shortcodes :
    [bbp-login] – Display the login screen.
    [bbp-register] – Display the register screen.
    [bbp-lost-pass] – Display the lost password screen.
    But I’d like a shortcode to sign out. I didn’t find it. Does it exist ?
    Thank you very much for your help…

Viewing 2 replies - 1 through 2 (of 2 total)

  • Robkk
    Moderator

    @robkk

    you can put this function in your child themes functions.php file

    function iweb_logout_url_shortcode() {
    	return wp_logout_url( home_url() );
    }
    add_shortcode( 'bbp-logout', 'iweb_logout_url_shortcode' );

    then use [bbp-logout]

    or use this plugin

    https://wordpress.org/plugins/log-out-shortcode/


    EmilieMarie
    Participant

    @emiliemarie

    Thank you very much Robkk.

    I just choosed the plugin and it works !

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar