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);
5
    5
    Your Cart
    Remove
    WPCargo Advance Package
    2 X $349.00 = $698.00
    Remove
    WPCargo Parcel Quotation Package
    1 X $333.90 = $333.90
    Remove
    Remove
    WPCargo Shipment Rate
    1 X $79.00 = $79.00
    Remove