You appear to be a bot. Output may be restricted
Description
Implement [bw_login] shortcode
Usage
bw_login_shortcode( $atts, $content, $tag );
Parameters
- $atts
- ( array ) optional – shortcode parameters
- $content
- ( string ) optional – not expected
- $tag
- ( string ) optional –
Returns
voidSource
File name: oik/shortcodes/oik-login.phpLines:
1 to 22 of 22
function bw_login_shortcode( $atts=null, $content=null, $tag=null ) { if ( is_user_logged_in() ) { if ( $content ) { $form = bw_do_shortcode( $content ); } else { $form = null; } } else { $redirect = bw_array_get( $atts, "redirect", null ); if ( $redirect == null ) { $redirect = get_permalink(); } $remember = bw_array_get( $atts, "remember", true ); $args = array( "redirect" => $redirect , "remember" => $remember , "echo" => false ); $form = wp_login_form( $args ); } return( $form ); }View on GitHub View on Trac