Plugin Directory

Changeset 3326657


Ignore:
Timestamp:
07/12/2025 08:56:40 AM (9 months ago)
Author:
wpmonks
Message:

updated to v1.1

Location:
iban-for-wpforms
Files:
144 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • iban-for-wpforms/trunk/iban-for-wpforms.php

    r3319038 r3326657  
    55 * Description: IBAN field in WPForms
    66 * Author: Sushil Kumar
    7  * Version: 1.0
     7 * Version: 1.1
    88 * License: GPLv2
    99 * Requires at least: 5.5
     
    1515
    1616// Set constants for plugin directory and plugin URL.
    17 define( 'SFWF_IBAN_VERSION', '1.0' );
    18 define( 'SFWF_IBAN_FILE', __FILE__ );
    19 define( 'SFWF_IBAN_DIR', plugin_dir_path( __FILE__ ) );
    20 define( 'SFWF_IBAN_URL', plugin_dir_url( __FILE__ ) );
     17define( 'IBANWPF_VERSION', '1.1' );
     18define( 'IBANWPF_FILE', __FILE__ );
     19define( 'IBANWPF_DIR', plugin_dir_path( __FILE__ ) );
     20define( 'IBANWPF_URL', plugin_dir_url( __FILE__ ) );
     21define( 'IBANWPF_STORE_URL', 'https://wpmonks.com' );
    2122
    2223// Autoload composer dependencies.
    23 require_once SFWF_IBAN_DIR . 'vendor/autoload.php';
     24require_once IBANWPF_DIR . 'vendor/autoload.php';
    2425
    2526/**
    2627 * Initialize the plugin.
    2728 */
    28 add_action( 'plugins_loaded', 'sfwf_iban_main_init' );
     29add_action( 'wpforms_loaded', 'ibanwpf_iban_main_init' );
    2930
    30 function sfwf_iban_main_init() {
    31     require_once SFWF_IBAN_DIR . 'includes/admin/class-sfwf-iban-field.php';
     31/**
     32 * Initializes the IBAN field plugin by loading required files and instantiating the main plugin class.
     33 *
     34 * This function is hooked to the 'wpforms_loaded' action and performs the following tasks:
     35 * - Includes necessary admin-related class files for IBAN field functionality
     36 * - Instantiates the main IBAN plugin class if it exists
     37 */
     38function ibanwpf_iban_main_init() {
     39    require_once IBANWPF_DIR . 'includes/admin/class-ibanwpf-field.php';
     40    require_once IBANWPF_DIR . 'includes/admin/admin-menu/Ibanwpf_EDD_SL_Plugin_Updater.php';
     41    require_once IBANWPF_DIR . 'includes/utils/class-ibanwpf-helpers.php';
     42    require_once IBANWPF_DIR . 'includes/admin/admin-menu/class-ibanwpf-addons-page.php';
     43    require_once IBANWPF_DIR . 'includes/admin/admin-menu/class-ibanwpf-license-page.php';
     44}
    3245
    33     if ( class_exists( 'Sfwf_IBAN_Main' ) ) {
    34         new Sfwf_IBAN_Main();
    35     }
     46
     47add_action( 'wpforms_builder_enqueues', 'ibanwpf_enqueue_admin_scripts' );
     48
     49/**
     50 * Enqueues admin-specific JavaScript for the IBAN field in the WPForms builder.
     51 *
     52 * Loads the admin.js script with dependencies on jQuery and WPForms builder,
     53 * which is required for custom IBAN field functionality in the form builder.
     54 *
     55 * @since 1.0
     56 */
     57function ibanwpf_enqueue_admin_scripts() {
     58    wp_enqueue_script(
     59        'ibanwpf-admin',                            // Handle
     60        IBANWPF_URL . '/js/admin.js',               // Script URL (no trailing slash before 'js')
     61        array( 'jquery', 'wpforms-builder' ),                            // Dependencies
     62        null,                                         // Version (you can set plugin version or filemtime)
     63        true                                          // Load in footer
     64    );
    3665}
  • iban-for-wpforms/trunk/readme.txt

    r3319039 r3326657  
    22Contributors: wpmonks
    33Donate link: https://www.paypal.me/wpmonks
    4 Tags: iban for wpforms, iban, iban validation, wpforms
     4Tags: iban for wpforms, iban, iban validation
    55Requires at least: 5.5
    66Tested up to: 6.8
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2828- Any form that requires bank account input
    2929
     30### Pro Features:
     31- Instantly Validate IBAN as user types in the field.
     32- Restrict IBAN field to specific countries.
     33- Caches IBAN validation checks to prevent repeated checks.
     34
     35You can find more information about the Pro version at https://wpmonks.com/downloads/iban-pro-for-wpforms/
     36
    3037== Installation ==
    3138
     
    35424. Add IBAN from the list of fields.
    36435. Save the form.
     44
     45== Changelog ==
     46= 1.1 (12/07/2025) =
     47* Code updates
     48* Added support for Pro version
     49
     50= 1.0 (28/06/2025) =
     51* Initial release
Note: See TracChangeset for help on using the changeset viewer.