/** * Send to Edit Address Page * * Handles to return edit address page url * * @package Social Deals Engine * @since 1.0.0 */ function wps_deals_send_on_edit_adderess_page($queryarg = array()) { $options = wps_deals_get_settings(); // Get edit address page url $sendeditaddress = wps_deals_edit_address_url(); $sendeditaddressurl = add_query_arg($queryarg, $sendeditaddress); wp_redirect(apply_filters('wps_deals_edit_address_page_redirect', $sendeditaddressurl, $queryarg)); exit; }
/** * Display Billing Address * * Handles to show billing address * * @package Social Deals Engine * @since 1.0.0 **/ function wps_deals_display_address($billingargs) { global $wps_deals_options; $address_key = isset($billingargs['billingkey']) ? $billingargs['billingkey'] : ''; //get edit address page url $editlinkurl = wps_deals_edit_address_url(); $editlink = add_query_arg(array('wps_deals_address' => $address_key), $editlinkurl); $billingargs['editlink'] = $editlink; //load billing addresses template wps_deals_get_template('my-account/billing-address.php', $billingargs); }