/** * Test that the registration form shortcode returns the expected output. */ public function test_register_form() { $this->assertContains('<legend>Register a New Account</legend>', give_register_form()); }
/** * Register Shortcode. * * Shows a registration form allowing users to users to register for the site. * * @since 1.0 * * @param array $atts Shortcode attributes. * @param string $content * * @uses give_register_form() * @return string */ function give_register_form_shortcode($atts, $content = null) { $atts = shortcode_atts(array('redirect' => ''), $atts, 'give_register'); return give_register_form($atts['redirect']); }
/** * Register Shortcode * * Shows a registration form allowing users to users to register for the site * * @since 1.0 * * @param array $atts Shortcode attributes * @param string $content * * @uses give_register_form() * @return string */ function give_register_form_shortcode($atts, $content = null) { extract(shortcode_atts(array('redirect' => ''), $atts, 'give_register')); return give_register_form($redirect); }