How to customize tracking form

Change example text

  1. Go to WPCargo > Manage Form Fields
  2. Check this checkbox field: Do you want to display on tracking page form? and Is field required on tracking page form?

Change the tracking form title

Note: Copy and paste this code in functions.php of your current theme.

add_filter( 'wpcargo_tn_form_title', 'wpcargo_tn_form_title_callback' );
function wpcargo_tn_form_title_callback(){
	return "Custom Title Form";
}

Change the input field placeholder

add_filter( 'wpcargo_tn_placeholder', 'wpcargo_tn_placeholder_callback' );
function wpcargo_tn_placeholder_callback(){
	return 'Custom placeholder';
}

Change the submit button

add_filter( 'wpcargo_tn_submit_val', 'wpcargo_tn_submit_val_callback' );
function wpcargo_tn_submit_val_callback(){
	return 'Custom Button Name';
}

Change example text

add_filter( 'wpcargo_example_text', 'wpcargo_example_text_callback' );
function wpcargo_example_text_callback(){
	$label = 'Ex. Custom Text';
	return '<tr class="track_form_tr"><td class="track_form_td" colspan="2"><h4>'.$label.'</h4></td></tr>';
}
0
    0
    Your Cart
    Your cart is emptyReturn to Shop