Skip to content

Instantly share code, notes, and snippets.

View patrickfreitasdev's full-sized avatar

Patrick de Freitas patrickfreitasdev

  • WPMU DEV
  • Perth | Australia
View GitHub Profile
@wpmudev-sls
wpmudev-sls / hb-fix-ao-random-cache-clearing.php
Last active June 11, 2024 23:34
[Hummingbird Pro] - Fix Asset Optimization clearing the Page Cache randomly
<?php
/**
* Plugin Name: [Hummingbird Pro] - Fix Asset Optimization clearing the Page Cache randomly (Rev. 4)
* Description: Description: Prevents the Cache Clearing process to be triggered after an AO queue completed under specific circumstance [ This should be fixed in the plugin core, if this snippet still help you please contact our support team ]
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-5702 / SLS-4239 / SLS-3756 / SLS-3786
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@adczk
adczk / forminator-prevent-duplicate-data-entry.php
Created February 8, 2023 15:57
Forminator - validate if same data for given fields was already submitted and prevent duplicated submission
<?php
/**
* Plugin Name: [Forminator] Check submission duplicated data
* Plugin URI: https://premium.wpmudev.org/
* Description: check if entry with same data (per defined field) already exists and prevent such duplicated data submission
* Author: adczk
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*
@adczk
adczk / forminator-remaining-select-submissions-show.php
Last active October 3, 2022 08:35
Forminator 1.18.2 - show number of remaining submissions for limited "select" fields
<?php
#################################
#
# Show number of submissions remaining for SELECT type fields
#
# use as MU plugin
#
# tested with Forminator 1.18.2 only
#
#################################