。 Male form_id the ID attribute value of male breeding. Default login information. Male label_username male label of the user name or email address field. The default is user name or email address. Label_password label of password field. The default is password. Male and female labels memory labels of male and female memory fields. Basic \
In fact,
\/\/The default redirect value returns the user to the request URI.
\
\
\
\
\
\
‘id_username’ => ‘user_login’,
‘id_password’ => ‘user_pass’,
\
\
\
\
\/\/Set the value _memoryto true, and select the remember check box by default.
\
);
); ?> Unlike the default word press login form label, the form appears as a new label added to the array. In the above code, the user name is changed to your username and the password is changed to your password.
After the shortcut code and callback function are generated, they must be initialized to add a custom login form using the shortcut code anywhere on the word press post or page. The following is the code to initialize the shortcut code of the login form\/\/ Step 3: initialize the short code function
Add_action (\
WordPress generates complete code snippets of the login form shortcut code. Now combine all these code snippets into one code snippet to realize the function of the active WordPress theme. You can add code to PHP and then use the shortcut code ([njengah login form]) to display the word press login form.
The following is the function to add the shortcut code of word press login form. The complete code snippet that needs to be added to the PHP file\/**
*Create a custom WordPress login form without a plug-in [WordPress login form shortcut code]
*@By Joe njengah
*@Key points- https:\/\/gist.github.com\/Njengah\/fa96025717308df1b979e77e5da3eef2
*\/
\/\/Step 1: generate short code
Function njengah_add_login_sho
rtcode() {
add_shortcode( ‘jay-login-form’, ‘njengah_login_form_shortcode’ );
}
\/\/Step 2: short code callback
Function njengah_login_form_shortcode(){
if (is_user_logged_in())
Return \

Male lies,
\
\
\
)
); ?>