add register form to YITH Woocommerce Popup
<?php
add_shortcode( 'wcloginform', array( $this, 'aakoot_render_login_form' ) );
public function aakoot_render_login_form( $atts, $content = null ) {
ob_start();
if ( !is_user_logged_in() ) {
echo '<div class="woocommerce">';
wc_get_template( 'myaccount/form-login.php' );
echo '</div>';
}
return ob_get_clean();
}