/** * Register Shortcode * * Shows a registration form allowing users to users to register for the site * * @since 2.0 * @param array $atts Shortcode attributes * @param string $content * @uses edd_register_form() * @return string */ function edd_register_form_shortcode($atts, $content = null) { extract(shortcode_atts(array('redirect' => ''), $atts, 'edd_register')); return edd_register_form($redirect); }
/** * Register Shortcode * * Shows a registration form allowing users to users to register for the site * * @since 2.0 * @param array $atts Shortcode attributes * @param string $content * @uses edd_register_form() * @return string */ function edd_register_form_shortcode($atts, $content = null) { $redirect = home_url(); $purchase_history = edd_get_option('purchase_history_page', 0); if (!empty($purchase_history)) { $redirect = get_permalink($purchase_history); } extract(shortcode_atts(array('redirect' => $redirect), $atts, 'edd_register')); return edd_register_form($redirect); }