Exemplo n.º 1
0
 /**
  * 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());
 }
Exemplo n.º 2
0
/**
 * 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']);
}
Exemplo n.º 3
0
/**
 * 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);
}