/** * 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 ''; }
function login_with_ajax($atts = '') { if (!array($atts)) { $atts = shortcode_parse_atts($atts); } echo LoginWithAjax::shortcode($atts); }