Front Submission/Dealer Dashboard (FAQ)
Dealer dashboard/profile not working with Yoast SEO
If the Yoast SEO plugin is installed, and the author archive is disabled in the Yoast SEO > Search Appearance > Archives tab, the dealer dashboard and dealer profile will not work. So, make sure the author archive is not disabled.
Please refer to the below document for more information.
https://yoast.com/help/disable-enable-author-archives/
How to add a custom tab in the dealer profile?
add_filter( 'cardealer_dashboard_user_profile_tabs', 'cardealer_child_add_custom_user_profile_tabs', 20 ); function cardealer_child_add_custom_user_profile_tabs( $tabs ) { $tabs['custom_tab'] = array( 'title' => esc_html__( 'Custom Tab', 'cdfs-addon' ), 'callback' => 'cardealer_child_dealer_profile_custom_tab', 'allowed_user_type' => array( 'dealer', ), ); return $tabs; } function cardealer_child_dealer_profile_custom_tab( $tab_id, $tab_data, $user ) { echo esc_html( 'This is a custom tab.' ); }
How to remove a dealer profile tab?
add_filter( 'cardealer_dashboard_user_profile_tabs', 'cardealer_child_remove_user_profile_tabs', 9999 ); function cardealer_child_remove_user_profile_tabs( $tabs ) { unset( $tabs['write-review'] ); return $tabs; }