Skip to content

Instantly share code, notes, and snippets.

View glaubersilva's full-sized avatar

Glauber Silva glaubersilva

View GitHub Profile
<?php
/**
* Plugin Name: [Defender] Remove Old Ignored Security Tweaks
* Plugin URI: https://premium.wpmudev.org/
* Description: If the user ignored a security tweak in the past that is no more available in the Defender options, the ignored tweaks counter need to be adjusted by this plugin.
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: 0/11289012348292/1171986183162816
* License: GPLv2 or later
*
<?php
/**
* Plugin Name: [Defender] Fix WP Ultimo Ajax URL
* Plugin URI: https://premium.wpmudev.org/
* Description: More details here >> https://premium.wpmudev.org/forums/topic/defender-and-wp-ultimo/
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: https://premium.wpmudev.org/forums/topic/defender-and-wp-ultimo/
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / class-wpmudev-forminator-storys.php
Last active June 12, 2020 16:47
[Forminator] WP Storys Simple Integration
<?php
/**
* Plugin Name: [Forminator] WP Storys Simple Integration
* Plugin URI: https://premium.wpmudev.org/
* Description: A custom simple integration with WP Storys - more details here >> https://wordpress.org/support/topic/story-form/#post-12957270
* Author: Glauber Silva @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: FOR-471
* License: GPLv2 or later
*
@glaubersilva
glaubersilva / gs-fix-juno-credit-card-expiry-mask.php
Created November 3, 2021 13:46
[GS] Fix Juno Credit Card Expiry Mask
<?php
/**
* Plugin Name: [GS] Fix Juno Credit Card Expiry Mask
* Plugin URI: https://glaubersilva.me/
* Description: In some devices, the credit card expiry mask - MMM / AAAA - not working, this plugin fixes the problem. It requires the plugins WooCommerce and Juno for WooCommerce installed.
* Author: Glauber Silva
* Author URI: https://glaubersilva.me/
* License: GPLv2 or later
*
* @package GS_Fix_Juno_Credit_Card_Expiry_Mask
<?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