Show login form for logged out users
function jp_cr_login_form( $content ) { if ( ! function_exists( ‘edd_cr_is_restricted’ ) ) { return $content; } global $post; if ( ! is_object( $post ) ) { return $content; } if ( edd_cr_is_restricted( $post->ID ) && ! is_user_logged_in() ) { $content…Continue reading