Last active
September 11, 2018 12:14
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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