March 2020
Beginner
660 pages
18h 28m
English
Use the following steps to protect the site with a single global password:
add_action('init','wpcpp_ch12_global_password_protection');function wpcpp_ch12_global_password_protection(){ // Step 3 code should be placed in the next line $html = "<div>".$error_message."</div> <form name='' method='POST' > <lalebl>".__('Site Password','wpccp')."</label> <input type='password' name='wpcpp_global_password' /> <input type='submit' value='".__('Verify','wpccp')."' /></form>"; echo $html;exit;}
Read now
Unlock full access