Adding Custom Tab to Account Page
-
I followed the instructions here adding the following code:
add_filter( ‘wpuf_account_sections’, ‘wpuf_my_page’ );
function wpuf_my_page( $sections ) {
$sections = array_merge( $sections, array( array( ‘slug’ => ‘dashboard’, ‘label’ => ‘My Listings’ ) ) );return $sections;
}add_action( ‘wpuf_account_content_my-page’, ‘wpuf_my_page_section’, 10, 2 );
function wpuf_my_page_section( $sections, $current_section ) {
wpuf_load_template(
“dashboard/account-listings.php”,
array( ‘sections’ => $sections, ‘current_section’ => $current_section )
);
}I created the template file. The new tab is there but nothing happens when it’s clicked.
The page I need help with: [log in to see the link]
- The topic ‘Adding Custom Tab to Account Page’ is closed to new replies.