How to Override Frontend Dashboard Template using Hook
- Create a folder wpcargo>templates under your current theme.
- Replicate the template you want to override and store it in the templates folder.
- Copy and paste this code to your theme functions.php file.
function wpcfe_include_template_{file_slug}( $template_path ){
$template_path = plugin_dir_path(__FILE__ ). 'wpcargo/templates/{file_name};
return $template_path;
}
add_filter('wpcfe_locate_template_{file_slug}', 'wpcfe_include_template_{file_slug}', 10);