Exemplo n.º 1
0
/**
 * Custom functions that deal with the integration of Login with Ajax.
 * See: https://wordpress.org/plugins/login-with-ajax/
 *
 * @package Listable
 */
function listable_lwa_modal()
{
    //double check just to be sure
    if (listable_using_lwa()) {
        $atts = array('profile_link' => true, 'template' => 'modal', 'registration' => true, 'redirect' => false, 'remember' => true);
        return LoginWithAjax::shortcode($atts);
    }
    return '';
}
Exemplo n.º 2
0
function login_with_ajax($atts = '')
{
    if (!array($atts)) {
        $atts = shortcode_parse_atts($atts);
    }
    echo LoginWithAjax::shortcode($atts);
}