Skip to content

Instantly share code, notes, and snippets.

// Creates Login Shortcode
// Shortcode Usage: [loginform redirect="http://my-redirect-url.com"]
function pippin_login_form_shortcode( $atts, $content = null ) {
extract( shortcode_atts( array(
'redirect' => ''
), $atts ) );
if (!is_user_logged_in()) {