Plugin Directory

Changeset 3051873


Ignore:
Timestamp:
03/15/2024 05:53:09 PM (2 years ago)
Author:
byteplant
Message:

Ninja Forms update

Location:
byteplant-phone-validator
Files:
4 edited
14 copied

Legend:

Unmodified
Added
Removed
  • byteplant-phone-validator/tags/4.3/plugin.php

    r3051596 r3051873  
    66 * Plugin URI: https://www.byteplant.com/phone-validator/
    77 * Description: Phone validation plugin. Works with Contact Form 7, Gravity Forms, WPForms, Ninja Forms and WooCommerce. For other 3rd party forms: add class='bppvp-phone' to all input fields you want to validate.
    8  * Version: 4.2
     8 * Version: 4.3
    99 * License: GPL2
    1010 * Author: Byteplant
  • byteplant-phone-validator/tags/4.3/readme.txt

    r3051596 r3051873  
    44Requires at least: 3.0.1
    55Tested up to: 6.5
    6 Stable tag: 4.2
     6Stable tag: 4.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • byteplant-phone-validator/tags/4.3/src/Ninja/class-bppv-ninja-forms.php

    r1998713 r3051873  
    5050        foreach( $form_data[ 'fields' ] as $key => $field ) {
    5151            if( stripos($field['key'], 'phone' ) === false ) continue;
     52            if( $field[ 'settings' ][ 'required' ] !== 1 ) continue;
    5253            $value = $field['value'];
    5354            $this->validator->set_phone( $value );
  • byteplant-phone-validator/trunk/plugin.php

    r3051596 r3051873  
    66 * Plugin URI: https://www.byteplant.com/phone-validator/
    77 * Description: Phone validation plugin. Works with Contact Form 7, Gravity Forms, WPForms, Ninja Forms and WooCommerce. For other 3rd party forms: add class='bppvp-phone' to all input fields you want to validate.
    8  * Version: 4.2
     8 * Version: 4.3
    99 * License: GPL2
    1010 * Author: Byteplant
  • byteplant-phone-validator/trunk/readme.txt

    r3051596 r3051873  
    44Requires at least: 3.0.1
    55Tested up to: 6.5
    6 Stable tag: 4.2
     6Stable tag: 4.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • byteplant-phone-validator/trunk/src/Ninja/class-bppv-ninja-forms.php

    r1998713 r3051873  
    5050        foreach( $form_data[ 'fields' ] as $key => $field ) {
    5151            if( stripos($field['key'], 'phone' ) === false ) continue;
     52            if( $field[ 'settings' ][ 'required' ] !== 1 ) continue;
    5253            $value = $field['value'];
    5354            $this->validator->set_phone( $value );
Note: See TracChangeset for help on using the changeset viewer.