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 | |
| if ( ! defined( 'ABSPATH' ) ) { exit; } elseif ( defined( 'WP_CLI' ) && WP_CLI ) { return; } | |
| add_action( 'plugins_loaded', 'wpmudev_forminator_fix_redirect_blank_space', 100 ); | |
| function wpmudev_forminator_fix_redirect_blank_space() { | |
| if ( class_exists( 'Forminator' ) ) { | |
| class WPMUDEV_FIX_redirect_blank_space{ | |
| private $form_id = 41393; //enter form_id here |
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_custom_form_submit_errors', function( $submit_errors, $form_id, $field_data_array ) { | |
| if( $form_id != 361 ) { | |
| return $submit_errors; | |
| } | |
| $last_entry = ''; | |
| // Change this to the message that you want to show. | |
| $message = 'Booking has been done for the day. Please book for another day.'; | |
| foreach( $field_data_array as $key => $value ){ |
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', function(){ ?> | |
| <script> | |
| (function ($) { | |
| $(function () { | |
| $(document).on("after.load.forminator", function (e, id) { | |
| function getQueryParams(qs) { |
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', function(){ | |
| ?> | |
| <script> | |
| function getParam(p) { | |
| var match = RegExp('[?&]' + p + '=([^&]*)').exec(window.location.search); | |
| return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); | |
| } |
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 | |
| if ( ! defined( 'ABSPATH' ) ) { exit; } elseif ( defined( 'WP_CLI' ) && WP_CLI ) { return; } | |
| add_action( 'plugins_loaded', 'wpmudev_forminator_add_custom_number_to_redirect_url_func', 100 ); | |
| function wpmudev_forminator_add_custom_number_to_redirect_url_func() { | |
| if ( class_exists( 'Forminator' ) ) { | |
| class WPMUDEV_Forminator_Add_Entry_ID_To_Redirect_URL{ | |
| private $form_id = 1639;//enter form_id here |
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( 'woocommerce_add_to_cart', function ( $cart_item_key, $product_id ) | |
| { | |
| //$total = WC()->cart->cart_contents_total; | |
| $product_id_trigger = 28; | |
| $hustle_module = 'PopUp'; // SlideIn, PopUp | |
| $module_id = 188; |
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 Pro] - Restrict select the multiple field(s). | |
| * Description: [Forminator Pro] - Restrict select the multiple field(s) (select/checkbox). | |
| * Author: Thobk @ WPMUDEV | |
| * Jira: SLS-918 | |
| * Author URI: https://premium.wpmudev.org | |
| * License: GPLv2 or later | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { |
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 smsportal integration ( Custom ) | |
| * Description: This is a really simple example of integration, full doc https://docs.smsportal.com/recipes/send-smses-using-php | |
| * Version: 1.0 | |
| */ | |
| 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 | |
| /** To do: validate if domain is active **/ | |
| function custom_select_domain_for_redirect( $blog_id = '') { | |
| if( ! $blog_id ){ | |
| return false; | |
| } |
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 | |
| /** | |
| * S3 integration: S3 class | |
| * | |
| * @package Smush\Core\Modules\Integrations | |
| * @subpackage S3 | |
| * @since 2.7 | |
| * | |
| * @author Umesh Kumar <[email protected]> | |
| * |