autoship_apply_customer_info_to_all_scheduled_order_default (filter)

(src/customers.php) Retrieves the default setting to apply to all Scheduled Orders. Takes a $user_id and $enabled (default: false). Used to choose the default behavior to apply updates to addresses (shipping and / or billing) to Scheduled Orders from the My Account > Addresses page.

Example

/**
* Retrieves the default setting for the apply to all scheduled orders.
* @param int $wc_customer_id. The user being updated.
* @return bool True to apply or false not to.
*/
function autoship_apply_customer_info_to_all_scheduled_order_default( $wc_customer_id ){
  return apply_filters('autoship_apply_to_scheduled_orders_by_default', false, $wc_customer_id );
}