wcv_shipping_providers_list

Description

apply_filters( 'wcv_shipping_providers_list', array( $attributes ) )

Parameters (1) (array)

Sample

array(
  'Australia' => array(
    'Australia Post' => 'http://auspost.com.au/track/track.html?id=%1$s',
    'FedEx' => 'https://www.fedex.com/apps/fedextrack/?tracknumbers=%1&cntry_code=au', 
  ),
  'Canada' => array(
    'Canada Post' => 'http://www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=%1$s',
  ),
  'Germany' => array(
    'DHL Intraship (DE)' => 'http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=%1$s&rfn=&extendedSearch=true',
    'Hermes' => 'https://tracking.hermesworld.com/?TrackID=%1$s',
    'Deutsche Post DHL' => 'http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=%1$s',
    'UPS Germany' => 'http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=de_DE&InquiryNumber1=%1$s',
    'DPD' => 'https://tracking.dpd.de/parcelstatus?query=%1$s&locale=en_DE',
  ),
  'Ireland' => array(
    'DPD' => 'http://www2.dpd.ie/Services/QuickTrack/tabid/222/ConsignmentID/%1$s/Default.aspx',
  ),
  'Italy' => array(
    'BRT (Bartolini)' => 'http://as777.brt.it/vas/sped_det_show.hsm?referer=sped_numspe_par.htm&Nspediz=%1$s',
    'DHL Express' => 'http://www.dhl.it/it/express/ricerca.html?AWB=%1$s&brand=DHL'
  ),
  'India' => array(
    'DTDC' => 'http://www.dtdc.in/dtdcTrack/Tracking/consignInfo.asp?strCnno=%1$s',
  ),
  'Netherlands' => array(
    'PostNL' => 'https://mijnpakket.postnl.nl/Claim?Barcode=%1$s&Postalcode=%2$s&Foreign=False&ShowAnonymousLayover=False&CustomerServiceClaim=False',
    'DPD.NL' => 'http://track.dpdnl.nl/?parcelnumber=%1$s',
  ),
  'New Zealand' => array(
    'Courier Post' => 'http://trackandtrace.courierpost.co.nz/Search/%1$s',
    'NZ Post' => 'http://www.nzpost.co.nz/tools/tracking?trackid=%1$s',
    'Fastways' => 'http://www.fastway.co.nz/courier-services/track-your-parcel?l=%1$s',
    'PBT Couriers' => 'http://www.pbt.com/nick/results.cfm?ticketNo=%1$s',
  ),
  'South Africa' => array(
    'SAPO' => 'http://sms.postoffice.co.za/TrackingParcels/Parcel.aspx?id=%1$s',
  ),
  'United Kingdom' => array(
    'DHL' => 'http://www.dhl.com/content/g0/en/express/tracking.shtml?brand=DHL&AWB=%1$s',
    'DPD' => 'http://www.dpd.co.uk/tracking/trackingSearch.do?search.searchType=0&search.parcelNumber=%1$s',
    'InterLink' => 'http://www.interlinkexpress.com/apps/tracking/?reference=%1$s&postcode=%2$s#results',
    'ParcelForce' => 'http://www.parcelforce.com/portal/pw/track?trackNumber=%1$s',
    'Royal Mail' => 'https://www.royalmail.com/track-your-item/?trackNumber=%1$s',
    'TNT Express (consignment)' => 'http://www.tnt.com/webtracker/tracking.do?requestType=GEN&searchType=CON&respLang=en&respCountry=GENERIC&sourceID=1&sourceCountry=ww&cons=%1$s&navigation=1&genericSiteIdent=',
    'TNT Express (reference)' => 'http://www.tnt.com/webtracker/tracking.do?requestType=GEN&searchType=REF&respLang=en&respCountry=GENERIC&sourceID=1&sourceCountry=ww&cons=%1$s&navigation=1&genericSiteIdent=',
    'UK Mail' => 'https://old.ukmail.com/ConsignmentStatus/ConsignmentSearchResults.aspx?SearchType=Reference&SearchString=%1$s',
  ),
  'United States' => array(
    'Fedex' => 'http://www.fedex.com/Tracking?action=track&tracknumbers=%1$s',
    'FedEx Sameday' => 'https://www.fedexsameday.com/fdx_dotracking_ua.aspx?tracknum=%1$s',
    'OnTrac' => 'http://www.ontrac.com/trackingdetail.asp?tracking=%1$s',
    'UPS' => 'http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=%1$s',
    'USPS' => 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=%1$s',
  ),
)

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_shipping_providers_list', array( $attributes );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_shipping_providers_list callback
function my_filter_function( $param ) {
  // do your thing here :-) ... 

  return $array_val; 
}
add_filter( 'wcv_shipping_providers_list', 'my_filter_function', 10, 1 );

To remove the filter, copy this sample

//remove the filter
remove_filter( 'wcv_shipping_providers_list', 'my_filter_function', 10, 1 );

Defined

This filter is defined in the following source file(s)

  • wcvendors-pro/public/class-wcvendors-pro-order-controller.php line 1003
    return $shipping_providers = apply_filters( 'wcv_shipping_providers_list', array(

filters

Updated on January 9, 2017

Was this article helpful?