0

I've added custom code to include a "Accept Terms and Conditions" checkbox field that should be required for login. However, while the custom code successfully adds the new field to the login form accessed via domainname.com/wp-admin, it doesn't appear in the login form generated by the shortcode [wppb-login].

Here's the code I'm using:

add_filter('wppb_login_form_bottom', 'add_custom_login_field');
function add_custom_login_field() {
    $output = '<label><input type="checkbox" name="terms_conditions" required> I accept the <a href="your-terms-page-url">Terms and Conditions</a></label>';
    return $output;
}

How can I ensure that the custom field is also added to the login form displayed by the [wppb-login] shortcode?

Thank you!

2
  • You'll have to check with the plugin's support team. Third-party plugin support is off topic here.
    – Pat J
    Commented May 12 at 19:14
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
    – Community Bot
    Commented May 14 at 23:35

0

Browse other questions tagged or ask your own question.