How to Override Frontend Dashboard Template using Hook

How to Override Frontend Dashboard Template using Hook

  1. Create a folder wpcargo>templates under your current theme.
  2. Replicate the template you want to override and store it in the templates folder.
  3. 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);
0
    0
    Your Cart
    Your cart is emptyReturn to Shop