Skip to content

Instantly share code, notes, and snippets.

View glaubersilva's full-sized avatar

Glauber Silva glaubersilva

View GitHub Profile
<?php
/**
* Plugin Name: [Forminator] Skip Steps in Pagination Form
* Plugin URI: https://premium.wpmudev.org
* Description: With this snippet and some extra configurations in your form is possible to skip steps according to user-selected choices in a control field - works with checkboxes, radio buttons and selects.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* Jira Task: FOR-428 and SLS-263 and SLS-2035
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Forminator] Fix Datepicker Date Limitations
* Plugin URI: https://premium.wpmudev.org
* Description: Datepicker has some problems with date limitations because the JavaScript new Date() method has some stranger behaviors that this plugin fixes - more details here: https://stackoverflow.com/a/31732581
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* Jira Task: SLS-2558
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / forminator-load-cpt-select-field.php
Created June 4, 2022 14:52 — forked from wpmudev-sls/forminator-load-cpt-select-field.php
[Forminator] Load custom posts on Select Field and get IDs on the on-change event.
<?php
/**
* Plugin Name: [Forminator] Load custom posts on Select Field and get IDs on the on-change event.
* Plugin URI: https://wpmudev.com/
* Description: With the ID retrieved on the "on change" event, you can write your custom code to get the post data and fill the correspondent fields on the form, more details about how to do it on the comment of this snippet.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-3568
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / wpmudev-forminator-hide-submit-button.php
Created June 4, 2022 14:57 — forked from wpmudev-sls/wpmudev-forminator-hide-submit-button.php
[Forminator] Hide Submit Button - Hides the "submit" button until all required fields are filled.
<?php
/**
* Plugin Name: [Forminator] Hide Submit Button
* Plugin URI: https://wpmudev.com
* Description: Hides the "submit" button until all required fields are filled.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com
* Jira Task: SLS-3194
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / forminator-disable-day.php
Created June 4, 2022 14:58 — forked from wpmudev-sls/forminator-disable-day.php
[Forminator] Disable Day in Datepicker. Disable the day until year and month are selected in datepicker.
<?php
/**
* Plugin Name: [Forminator] Disable Day in Datapicker
* Plugin URI: https://premium.wpmudev.org/
* Description: Disable the day until year and month are selected in datepicker.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: 0/11289012348292/1170035802748483
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / sample-form.txt
Created June 4, 2022 14:58 — forked from wpmudev-sls/sample-form.txt
[Forminator] Fix Search Inputs on Selec Fields
{"type":"form","data":{"fields":[{"id":"address-1","element_id":"address-1","form_id":"wrapper-516-6725","type":"address","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-516-6725","street_address":false,"address_city":false,"address_state":false,"address_zip":false,"address_country":"true","address_line":false,"street_address_label":"Street Address","street_address_placeholder":"E.g. 42 Wallaby Way","address_city_label":"City","address_city_placeholder":"E.g. Sydney","address_state_label":"State/Province","address_state_placeholder":"E.g. New South Wales","address_zip_label":"ZIP / Postal Code","address_zip_placeholder":"E.g. 2000","address_country_label":"Country","address_line_label":"Apartment, suite, etc","street_address_required_message":"This field is required. Please enter the street address.","address_zip_required_message":"This field is required. Please enter the zip code.","address_country_required_message":"This field is required. Please select the country.","address_city_required_mess
<?php
/**
* Plugin Name: [Forminator] Set Global Sender And Notifications Recipients For Child Sites.
* Plugin URI: https://wpmudev.com/
* Description: Compatible with WP Ultimo site duplication through templates.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-3102
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / wpmudev-forminator-subscription-helpers.php
Created June 4, 2022 14:58 — forked from wpmudev-sls/wpmudev-forminator-subscription-helpers.php
[Forminator] - Restrict Content Based on Stripe Subscription
<?php
/**
* Plugin Name: [Forminator] - Restrict Content Based on Stripe Subscription
* Plugin URI: https://wpmudev.com/
* Description: Implement helper functions to check by "Form ID" and "email" if a user has an active stripe subscription.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Jira Task: SLS-3589
* License: GPLv2 or later
*/
@glaubersilva
glaubersilva / wpmudev-forminator-skip-empty-pages.php
Created June 4, 2022 15:02 — forked from wpmudev-sls/wpmudev-forminator-skip-empty-pages.php
[Forminator] Skip Empty Pages on Pagination Forms
<?php
/**
* Plugin Name: [Forminator] Skip Empty Pages on Pagination Forms
* Plugin URI: https://wpmudev.com/
* Description: If the page is empty, automatically go to the next or previous page.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com/
* Task: SLS-2261 and SLS-2500
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Forminator] Automatic Actions
* Plugin URI: https://wpmudev.com
* Description: *** ACTION 1 - When a field with the "sls-automatic-next-step" class became visible, this plugin automatically clicks on the "Next" button in case it exists. *** ACTION 2 - When a field with the "sls-automatic-submit" class became visible, this plugin automatically clicks on the "Submit" button. *** SETUP - Go to "Your Field > Edit Field > Styling" and add the "sls-automatic-next-step" class for active the action 1 OR add the "sls-automatic-submit" class to active the action 2 (always add the class name without the quotes)
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://wpmudev.com
* Jira Task: SLS-1399 and SLS-3171
* License: GPLv2 or later
*