Skip to content

Instantly share code, notes, and snippets.

@varun-pluginhive
Last active September 11, 2018 12:14
Show Gist options
  • Save varun-pluginhive/b048f5b225f0182211afdbc0c6d15362 to your computer and use it in GitHub Desktop.
Save varun-pluginhive/b048f5b225f0182211afdbc0c6d15362 to your computer and use it in GitHub Desktop.
Snippet to change Access Point name on checkout field. WOOCOMMERCE UPS SHIPPING PLUGIN WITH PRINT LABEL - https://www.pluginhive.com/product/woocommerce-ups-shipping-plugin-with-print-label/
/**
* Snippet to change Access Point name on checkout field.
* Created at : 11 Sep 2018
* Updated at : 11 Sep 2018
* PluginHive Plugins : http://www.pluginhive.com/plugins/
* Gist Link : https://gist.github.com/varun-pluginhive/b048f5b225f0182211afdbc0c6d15362
*/
if( ! function_exists('ph_customize_access_point_name') ) {
function ph_customize_access_point_name( $fields ){
if( ! empty($fields['billing']['shipping_accesspoint']) ) {
$fields['billing']['shipping_accesspoint']['label'] = 'Access Point'; // Replace Access Point with name of your preference
}
return $fields;
}
add_filter( 'xa_checkout_fields', 'ph_customize_access_point_name' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment