Title: Captcha insert
Last modified: August 31, 2016

---

# Captcha insert

 *  Resolved [AMIR](https://wordpress.org/support/users/arabicman/)
 * (@arabicman)
 * [10 years ago](https://wordpress.org/support/topic/captcha-insert/)
 * Hello
    I cant thank you for this great plugin and all its features .. simply 
   fantastic and do the job . rated 5 stars because it deserve it ..
 * I use a theme called newspaper [http://demo.tagdiv.com/newspaper/](http://demo.tagdiv.com/newspaper/)
   and it uses custom login and register. you can see (Sign in / Join) at top menu
   
   my question is : is there any shortcode or php line that i can add to show the
   captcha that All In One WP Security & Firewall uses in wordpress login and comment..
   I appreciate your answer Thanks
 * [https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [AMIR](https://wordpress.org/support/users/arabicman/)
 * (@arabicman)
 * [10 years ago](https://wordpress.org/support/topic/captcha-insert/#post-7379928)
 * here i am pasting the code of the login /register Modal
 *     ```
       <!-- LOGIN MODAL -->
       <?php
       //check if admin allow registration
       $users_can_register = get_option('users_can_register');
   
       //if admin permits registration
       $users_can_register_tab = '';
       $users_can_register_form = '';
   
       if($users_can_register == 1){
   
           //add the Register tab to the modal window if <code>Anyone can register</code> chec
           $users_can_register_tab = '<li><a id="register-link">' . __td('REGISTER', TD_THEME_NAME) . '</a></li>';
   
           $users_can_register_form = '
                               <div id="td-register-div" class="td-display-none">
                                   <div class="td-login-panel-title">' . __td('Register for an account', TD_THEME_NAME) .'</div>
                                   <input class="td-login-input" type="text" name="register_email" id="register_email" placeholder="' . __td('your email', TD_THEME_NAME) .'" value="" required>
                                   <input class="td-login-input" type="text" name="register_user" id="register_user" placeholder="' . __td('your username', TD_THEME_NAME) .'" value="" required>
                                   <input type="button" name="register_button" id="register_button" class="wpb_button btn td-login-button" value="' . __td('Register', TD_THEME_NAME) . '">
                                    <div class="td-login-info-text">' . __td('A password will be e-mailed to you.', TD_THEME_NAME) . '</div>
                               </div>';
       }
   
       echo '
                       <div  id="login-form" class="white-popup-block mfp-hide mfp-with-anim">
                           <ul class="td-login-tabs">
                               <li><a id="login-link" class="td_login_tab_focus">' . __td('LOG IN', TD_THEME_NAME) . '</a></li>' . $users_can_register_tab . '
                           </ul>
   
                           <div class="td-login-wrap">
                               <div class="td_display_err"></div>
   
                               <div id="td-login-div" class="">
                                   <div class="td-login-panel-title">' . __td('Welcome! Log into your account', TD_THEME_NAME) .'</div>
                                   <input class="td-login-input" type="text" name="login_email" id="login_email" placeholder="' . __td('your username', TD_THEME_NAME) .'" value="" required>
                                   <input class="td-login-input" type="password" name="login_pass" id="login_pass" value="" placeholder="' . __td('your password', TD_THEME_NAME) .'" required>
                                   <input type="button" name="login_button" id="login_button" class="wpb_button btn td-login-button" value="' . __td('Log In', TD_THEME_NAME) . '">
   
                                   <div class="td-login-info-text"><a href="#" id="forgot-pass-link">' . __td('Forgot your password?', TD_THEME_NAME) . '</a></div>
   
                               </div>
   
                               ' . $users_can_register_form . '
   
                                <div id="td-forgot-pass-div" class="td-display-none">
                                   <div class="td-login-panel-title">' . __td('Recover your password', TD_THEME_NAME) .'</div>
                                   <input class="td-login-input" type="text" name="forgot_email" id="forgot_email" placeholder="' . __td('your email', TD_THEME_NAME) .'" value="" required>
                                   <input type="button" name="forgot_button" id="forgot_button" class="wpb_button btn td-login-button" value="' . __td('Send My Pass', TD_THEME_NAME) . '">
                               </div>
   
                           </div>
                       </div>
                       ';
       ?>
       ```
   
 *  Thread Starter [AMIR](https://wordpress.org/support/users/arabicman/)
 * (@arabicman)
 * [10 years ago](https://wordpress.org/support/topic/captcha-insert/#post-7379968)
 * I tried the following :
 *     ```
       $cap='';
       if( function_exists( 'display_captcha_form' ) ) {
       $cap = display_captcha_form();
       };
       ```
   
 * and to display it I used :
    `' . $cap .'`
 * but no luck 🙁
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years ago](https://wordpress.org/support/topic/captcha-insert/#post-7380004)
 * Hi, did you by any chance enabled the following feature
    **Enable Captcha On 
   Custom Login Form:** under **Brute Force -> Login Captcha**?
 * The above settings works with the following function wp_login_form. Read the 
   following information which is displayed next to the above mentioned feature.
 * > Check this if you want to insert captcha on a custom login form generated by
   > the following WP function: wp_login_form()
 * Have you read the following [wp_login_form](https://codex.wordpress.org/Function_Reference/wp_login_form)
   from WordPress?
 *  Thread Starter [AMIR](https://wordpress.org/support/users/arabicman/)
 * (@arabicman)
 * [10 years ago](https://wordpress.org/support/topic/captcha-insert/#post-7380005)
 * Hi
    Thank you so much for answering… Yes , i did Enable Captcha On Custom Login
   Form in settings. i can add the login form by using wp_login_form() and the captcha
   appear i just was wondering if there is a function or short code that can be 
   inserted in a custom login form , because as you see in example above it did 
   not work by enabling this option in backend…
 * Thank you again
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years ago](https://wordpress.org/support/topic/captcha-insert/#post-7380012)
 * Hi in regards to the following question.
 * > i just was wondering if there is a function or short code that can be inserted
   > in a custom login form , because as you see in example above it did not work
   > by enabling this option in backend…
 * The plugin developers will let you know.
 * Kind regards
 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [10 years ago](https://wordpress.org/support/topic/captcha-insert/#post-7380021)
 * > i just was wondering if there is a function or short code that can be inserted
   > in a custom login form
 * Since you are not using the wordpress function to insert the login form (**wp_login_form()**)
   there is no standard way to insert the aiowps captcha form.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Captcha insert’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)
 * [Short Code](https://wordpress.org/support/topic-tag/short-code/)

 * 6 replies
 * 3 participants
 * Last reply from: [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/captcha-insert/#post-7380021)
 * Status: resolved