This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: [Forminator] - Add support for limit minimum Forminator phone fields characters | |
| * Description: [Forminator] - Add support for limit minimum Forminator phone fields characters | |
| * Based on https://gist.github.com/wpmudev-sls/b20040d0f49fb822553194fd0a34d5ff | |
| * Author: Thobk @ WPMUDEV | Patrick Freitas @ WPMUDEV | |
| * Author URI: https://premium.wpmudev.org | |
| * License: GPLv2 or later | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { exit; } elseif ( defined( 'WP_CLI' ) && WP_CLI ) { return; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div> | |
| <div style="display: block; background-color: #ddd; color: black; padding: 10px;"> | |
| Name: | |
| </div> | |
| <div style="display: block; color: black; padding: 10px 20px;">{name-1}</div> | |
| <div style="display: block; background-color: #ddd; color: black; padding: 10px;"> | |
| Email: | |
| </div> | |
| <div style="display: block; color: black; padding: 10px 20px;">{email-1}</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Based on https://thereforei.am/2011/03/15/how-to-allow-administrators-to-edit-users-in-a-wordpress-network/ | |
| function mc_admin_users_caps( $caps, $cap, $user_id, $args ){ | |
| foreach( $caps as $key => $capability ){ | |
| if( $capability != 'do_not_allow' ) | |
| continue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'plugins_loaded', function(){ | |
| if ( ! defined( 'DEFENDER_VERSION' ) ) { | |
| return; // Defender is not installed/enabled. | |
| } | |
| if ( ! class_exists( 'Defender_Legacy_IP_Detection' ) ) { | |
| class Defender_Legacy_IP_Detection { | |
| use WP_Defender\Traits\IP; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| ** Script to assign post to new user when Post Data field and user registration are used together. | |
| **/ | |
| if (!defined('ABSPATH')) | |
| { | |
| exit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Use [pmu_mail_render] shortcode | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } | |
| add_action( | |
| 'wp_ajax_forminator_save_builder', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('wp_footer','custom_js_form_validation'); | |
| function custom_js_form_validation(){ | |
| ?> | |
| <script> | |
| jQuery( document ).ready(function($) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // JS doc https://github.com/fancyapps/ui | |
| // Handle the shortcode | |
| function custom_gallery_forminator_html_function( $atts = [] ){ | |
| // get the IDs from shorcode | |
| $gallery = ( isset( $atts['ids'] ) ) ? explode( ',', $atts['ids'] ) : null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( | |
| 'forminator_cform_render_fields', | |
| function( $wrappers, $model_id ) { | |
| if( $model_id != 847 ){ | |
| return $wrappers; | |
| } | |
| $select_fields_data = array( |