Deprecated: Required parameter $field follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-repeater.php on line 715

Deprecated: Required parameter $post_id follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-repeater.php on line 715

Deprecated: Required parameter $field follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-repeater.php on line 781

Deprecated: Required parameter $post_id follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-repeater.php on line 781

Deprecated: Required parameter $field follows optional parameter $name in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1052

Deprecated: Required parameter $field follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1088

Deprecated: Required parameter $post_id follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1088

Deprecated: Required parameter $field follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1140

Deprecated: Required parameter $post_id follows optional parameter $i in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 1140

Deprecated: Required parameter $field follows optional parameter $id in /var/www/codexcoach.com/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-gallery.php on line 300
WordPress Login Form Without Plugin - CodeXCoach
WordPress
April 30, 2020

WordPress Login Form Without Plugin

Are you need simple login form without plugin for your WordPress website? Yes, Then i have created [wc_login_form] shortcode with quick simple code. So you can put login form anywhere like in Pages, Posts and Widget etc… Therefore you just need to put [wc_login_form] shortcode where you need login form. So you need to follow below steps.

Code for shortcode.

You need to put below code in theme’s functions.php file. If you have created child theme then add this in function file of child theme.

Code for Login.

In this code i am validating form and log in WordPress on wp action. Add it in functions.php file after above code. If this code will not work then change action wp to init.

WordPress Default Login Form.

Provides a simple login form for use anywhere within WordPress. You can get login form using wp_login_form() function.

Resource


Related Post


How to Create Your Own WordPress Shortcodes

Simple shortcodes Shortcode functions can be added to plugin code or your theme’s functions.php file. If it’s the latter, I’d recommend creating a separate wc-shortcodes.php file, then adding include(‘wc-shortcodes.php’); to functions.php. You can use below code to include file wc-shortcodes.php. If the shortcode produces a lot of HTML then ob_start can be used to capture […]

WordPress Register Form Without Plugin

Are you need simple register form without plugin for your WordPress website? Yes, Then i have created [wc_register_form] shortcode with quick simple code. So you can add register form anywhere like in Pages, Posts and Widget etc… Therefore you just need to put [wc_register_form] shortcode where you need register form. So you need to follow […]

Set time Zone by Country

Include the following code file to your current themes functions.php file. Users can see all time by their country timezone wise.

How to Change WordPress Post excerpt length

For Change post excerpt length add following code in your current themes functions.php file.

Disable Payments on WooCommerce

You are using WooCommerce for your eCommerce website. A thing is you want to disable payment on your website, but disabling in WooCommerce payment setting WooCommerce > Settings > Payments will not work and display There are no payment methods available. Add this code to functions.php file of theme.

Add ACF Options Page in WordPress

To create an options page, open up your current themes functions.php file and add the following code: Without passing any parameters to this function, the default options page will be added to your wp-admin sidebar.


Leave a Reply

Your email address will not be published. Required fields are marked *