The MY ACCOUNT button can link to whatever you like really. Even rename it whatever you want! It's just an added button that will use your pre-existing CSS button class (or even change that if need be). Here I show how to direct this new button to either Woo-commerce custom (dashboard.php) page OR even the users phpBB User Control Panel (UCP). Just another way to have one button, instead of a whole other widget! Try this as I've done, thought I'd share:
FIRST CHOOSE WHERE YOU'RE LINKING THE NEW BUTTON
Want to link to WooCommerce user account page? Use this where it says "PLACE_THE_BUTTON_LINK_HERE".
Code: Select all
//your-WP-domain.com/my-account/
Want to link to your phpBB UCP instead? Use this where it says "PLACE_THE_BUTTON_LINK_HERE".
Code: Select all
<?php echo $w3all_url_to_cms;?>/ucp.php?i=ucp_profile&mode=reg_details
If you use iframe for your forums, you'll need to edit: /wp-content/plugins/wp-w3all-phpbb-integration/views/login_form_include_iframe_mode_links.php otherwise if you don't use iframe option, open and edit: login_form_include_noiframe_mode_links.php
Lastly, Find:
Code: Select all
<?php $logout_button = false;
if (!$logout_button){ ?>
<a class="button" href="<?php echo wp_logout_url(); ?>"><?php echo __('Logout' , 'wp-w3all-phpbb-integration' ); ?></a>
<?php } else { ?>
<form action="<?php echo wp_logout_url(); ?>">
<input type="submit" value="<?php echo __('Logout' , 'wp-w3all-phpbb-integration' ); ?>" />
</form>
<?php } ?>
Code: Select all
<?php $logout_button = false;
if (!$logout_button){ ?><br />
<a class="button" href="PLACE_THE_BUTTON_LINK_HERE"><?php echo __('My Account' , 'wp-w3all-phpbb-integration' ); ?></a>
<a class="button" style="float:right;" href="<?php echo wp_logout_url(); ?>"><?php echo __('Logout' , 'wp-w3all-phpbb-integration' ); ?></a>
<?php } else { ?><br />
<a class="button" style="float:right;" href="PLACE_THE_BUTTON_LINK_HERE"><?php echo __('My Account' , 'wp-w3all-phpbb-integration' ); ?></a>
<form action="<?php echo wp_logout_url(); ?>">
<input class="button" type="submit" value="<?php echo __('Logout' , 'wp-w3all-phpbb-integration' ); ?>" />
</form>
<?php } ?>