My Account: Disable Option to Apply Updates to Shipping Address to Scheduled Orders
Disables the option added by Autoship Cloud in My Account > Addresses that enables customers to apply changes to their Shipping Address their Scheduled Orders.
Important: Always test customizations to your site on a staging environment before making changes to your live / production site. If you are not experienced with testing changes on a staging site, here is a good article to review.
/** * Disables The Update Address on all Scheduled Orders functionality in My Account > Addresses. * * @param bool $enabled True enabled else false. * @param int $user_id The current users ID * * @return bool The filtered value, */ function xx_disable_update_address_notice( $enabled, $user_id ){ return false; } add_filter( 'autoship_display_customer_update_actions', 'xx_disable_update_address_notice', 10, 2 );