I have exactly the same problem!
Could someone please help???
Thanks!!
yes, drop this into your functions file.
Functions files and child themes – explained !
This will send users to the /forums/ page whenever they log out -whether private or public forum or on a topic or reply, or anywhere within bbpress. If you logout, you’re saying your done, so taking you back to the index seems a logical place to end up !
You can change the $url to say ‘/home/’ if you want the home page,
//sends the user to $url - in this case '/forums/'
function rw_logout ($redirect_to) {
$url='/forums/' ;
$redirect_to = '<a href="' . wp_logout_url( $url ) . '" class="button logout-link">' . esc_html__( 'Log Out', 'bbpress' ) . '</a>' ;
return $redirect_to ;
}
add_filter ('bbp_get_logout_link', 'rw_logout') ;
Hi!
Is this the file? : bbpress-functions.php
Is this its location? : /public/www/wp-content/plugins/bbpress/templates/default
Where exactly do I drop the lines into the file?
thanks for your help!
no the file is one that belongs to your theme called just functions.php
you’ll find it at
wp-content/themes/%yourthemename%/functions.php
where %yourthemename% is the name of your theme.
If you don’t have a child theme, then you should create one, see
Functions files and child themes – explained !
It works great, thanks! You’ve been very helpful!!!
great – glad you’re fixed !