• Hey there,

    I’m trying to use the captcha functionality into a login screen generated by Restrict Content Pro plugin of Pippin. Inside the functions.php file of my child-theme I use
    add_action( 'rcp_login_form_fields_before_submit', array(AIOWPSecurity_General_Init_Tasks, 'insert_captcha_custom_login'), 10, 2 );
    , the rcp_login_form_fields_before_submit action is located in user login template but I keep getting the following error
    Warning: Missing argument 2 for AIOWPSecurity_General_Init_Tasks::insert_captcha_custom_login() in /xxx/wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-general-init-tasks.php on line 252

    Any help would be greatly appreciated,
    Dimitris

    https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi the plugin developers will further into your code.

    Thank you.

    Plugin Contributor wpsolutions

    (@wpsolutions)

    Can you please explain what exactly you are trying to achieve?

    Thread Starter Dimitris Kalliris

    (@fovoc)

    Hey there,

    I wan’t to use the captcha functionality in a custom login page generated by Restrict Content Pro.

    Inside the functions.php file of my child-theme I use
    add_action( ‘rcp_login_form_fields_before_submit’, array(AIOWPSecurity_General_Init_Tasks, ‘insert_captcha_custom_login’), 10, 2 );
    , the rcp_login_form_fields_before_submit action is located in user login template but I keep getting the following error
    Warning: Missing argument 2 for AIOWPSecurity_General_Init_Tasks::insert_captcha_custom_login() in /xxx/wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-general-init-tasks.php on line 252

    Thanks in advanced,
    Dimitris

    Plugin Contributor wpsolutions

    (@wpsolutions)

    You will need to use a filter hook to add the captcha code not an action hook.

    Thread Starter Dimitris Kalliris

    (@fovoc)

    Hey there,

    I just realised that you’re using the login_form_middle filter hook in custom login pages for that. I’ll get around it. ??

    Thanks for the help,
    Dimitris

    Plugin Contributor mbrsolution

    (@mbrsolution)

    @dimitris great to hear you found a solution.

    If you no longer require any more help with this support thread can you mark this support tread as resolved.

    Thank you

    Thread Starter Dimitris Kalliris

    (@fovoc)

    Hey there,

    I haven’t implemented a solution yet, but if I finally use the login page of RCP then I’ll post back here my solution.

    Cheers,
    Dimitris

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Use captcha in custom login screen’ is closed to new replies.