You appear to be a bot. Output may be restricted
Description
Login Shortcode
Shows a login form allowing users to users to log in. This function simply calls the edd_login_form function to display the login form.
Usage
$string = edd_login_form_shortcode( $atts, $content );
Parameters
- $atts
- ( array ) required – Shortcode attributes
- $content
- ( string ) optional –
Returns
string
Source
File name: easy-digital-downloads/includes/shortcodes.php
Lines:
1 to 30 of 30
function edd_login_form_shortcode( $atts, $content = null ) { $redirect = ''; extract( shortcode_atts( array( 'redirect' => $redirect ), $atts, 'edd_login' ) ); if ( empty( $redirect ) ) { $login_redirect_page = edd_get_option( 'login_redirect_page', '' ); if ( ! empty( $login_redirect_page ) ) { $redirect = get_permalink( $login_redirect_page ); } } if ( empty( $redirect ) ) { $purchase_history = edd_get_option( 'purchase_history_page', 0 ); if ( ! empty( $purchase_history ) ) { $redirect = get_permalink( $purchase_history ); } } if ( empty( $redirect ) ) { $redirect = home_url(); } return edd_login_form( $redirect ); }