Untitled

mail@pastecode.io avatar
unknown
plain_text
14 days ago
2.4 kB
2
Indexable
Never
add_filter('marketking_dashboard_login_form', function($form){
	ob_start();
	?>
	<form name="loginform" id="loginform" action="<?php echo site_url( '/wp-login.php' ); ?>" method="post">
	    <div class="form-group">
	        <div class="form-label-group">
	            <label class="form-label" for="default-01"><?php esc_html_e('Email or Username','marketking-multivendor-marketplace-for-woocommerce');?></label>
	        </div>
	        <input type="text" class="form-control form-control-lg" id="user_login" placeholder="<?php esc_attr_e('Enter your email address or username','marketking-multivendor-marketplace-for-woocommerce');?>" name="log" value="<?php echo apply_filters('marketking_default_vendor_username', '');?>">
	    </div>
	    <div class="form-group">
	        <div class="form-label-group">
	            <label class="form-label" for="password"><?php esc_html_e('Password','marketking-multivendor-marketplace-for-woocommerce');?></label>
	            <a class="link link-primary link-sm" href="<?php echo wp_lostpassword_url(); ?>"><?php esc_html_e('Forgot password?','marketking-multivendor-marketplace-for-woocommerce');?></a>
	        </div>
	        <div class="form-control-wrap">
	            <a href="#" class="form-icon form-icon-right passcode-switch" data-target="user_pass">
	                <em class="passcode-icon icon-show icon ni ni-eye"></em>
	                <em class="passcode-icon icon-hide icon ni ni-eye-off"></em>
	            </a>
	            <input type="password" class="form-control form-control-lg" id="user_pass" placeholder="<?php esc_attr_e('Enter your password','marketking-multivendor-marketplace-for-woocommerce');?>" name="pwd" value="<?php echo apply_filters('marketking_default_vendor_password', '');?>">
	            <input type="hidden" name="marketking_dashboard_login" value="1">
	            <input type="hidden" value="<?php echo esc_attr( trailingslashit(get_page_link(apply_filters( 'wpml_object_id', get_option( 'marketking_vendordash_page_setting', 'disabled' ), 'post' , true))) ); ?>" name="redirect_to">
	        </div>
	    </div>
	    <div class="form-group">
	        <button id="wp-submit" type="submit" value="Login" name="wp-submit" class="btn btn-lg btn-primary btn-block"><?php esc_html_e('Sign in','marketking-multivendor-marketplace-for-woocommerce');?></button>
	    </div>
	</form>
	<?php

	return ob_get_clean();
}, 10, 1);
Leave a Comment