Support » Plugin: Contact Form 7 Add Password field » Add a filter to allow tag features modification

  • It will be nice if the plugin add a filter wich allow to hook to in order to add features something simple like:

    function wpcf7_add_form_tag_k_password() {
    $features = array( ‘name-attr’ => true );
    apply_filters( ‘cf7-add-password-field-features’,$features );
    wpcf7_add_form_tag( array(‘password’,’password*’),
    ‘wpcf7_k_password_form_tag_handler’, $features );

    I have already made this change in the add-in, but I don’t want to have to be aware of possible updates and these changes are eliminated by the update. I publish this change here in case someone finds it useful or is already using it equally.

    It can be useful, for example, to avoid flamingo registering clear text passwords. Do something like this:

    add_filter( ‘cf7-add-password-field-features’ , function($features) { $features[‘do-not-store’] = true; return $features;} );

    By the way, Thanks for the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks for the contribution.
    Although I wasn’t able to add this code myself (Flamingo was still saving the password), it’s really a great idea and definitely useful. Yes, No one wants Flamingo to store plain passwords.
    Would it be possible with similar code also to change the minimum length required?
    At the moment even a single character can be used as a password…

    Plugin Author kimipooh


    Dear angarf-san,

    Thank you for the suggestion.
    I added your code in the version 2.2 of this plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add a filter to allow tag features modification’ is closed to new replies.