Skip to content

Instantly share code, notes, and snippets.

@adczk
adczk / wpmudev-hosting-automatic-cache-purger.php
Last active February 1, 2024 15:30
Automatically purge WPMU DEV hosting cache (static and object) on post add/edit/scheduled publish
<?php
/**
* Plugin Name: WPMU DEV Hosting - automatic hosting cache purger for WP
* Plugin URI: https://premium.wpmudev.org/
* Description: Automatically purge hosting cache (static and object) on post add/edit/scheduled publish
* Author: adczk (based on code from Prashant Singh)
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or
*
@adczk
adczk / smartcrawl-desc-keywords-columns.php
Created October 4, 2023 07:46
SmartCrawl - Show Description & Focus Keywords on Posts/Pages list tables.
<?php
/**
* Plugin Name: SmartCrawl - Show Description & Focus Keywords on Posts/Pages list tables.
* Plugin URI: https://wpmudev.com/
* Description: SmartCrawl - Show Description & Focus Keywords on Posts/Pages list tables.
* Author: Konstantinos Xenos @ WPMUDEV
*
* Author URI: https://wpmudev.com/
* License: GPLv2 or later
@adczk
adczk / forminator-minimum-characters-limit.php
Created September 20, 2023 11:39
Forminator - set minimum characters limit for field
<?php
/**
* Plugin Name: [Forminator] - set minimum characters limit for field
* Description: [Forminator] - set minimum characters limit for field
* Author: Adam @ WPMUDEV
* Author URI: https://wpmudev.com
* License: GPLv2 or later
*
* Tested with Forminator 1.26 but should work with older too probably
@adczk
adczk / forminator-disable-datepicker-dates.php
Created August 3, 2023 12:19
Forminator - disable datepicker dates dynamically with the code
<?php
// use as MU plugin
// see comment to make it dynamically fetch dates to disable from your own code
add_filter( 'forminator_field_date_markup', 'wpmu_disable_date_dates', 11, 1 );
function wpmu_disable_date_dates( $html ) {
// below line is example
@adczk
adczk / forminator-hustle-local-list-integration.php
Created July 25, 2023 09:51
Forminator - Hustle: add data submitted in Forminator form to Hustle's local email list
<?php
/**
* Plugin Name: [Forminator] - Forminator - Hustle: add data submitted in Forminator form to Hustle's local email list
* Description: [Forminator] - Forminator - Hustle: add data submitted in Forminator form to Hustle's local email list
* Author: Adam @ WPMUDEV
* Author URI: https://wpmudev.com
* License: GPLv2 or later
*
* Tested with Forminator 1.24.6 and Hustle 4.8.0 (backwards/future compatibility unknown)
@adczk
adczk / forminator-replace-hidden-field-with-acf-value.php
Last active July 21, 2023 07:39
Forminator 1.24.x - replace value of hidden fields (with ACF field value currently but can be modified to your neeeds)
<?php
/**
* Plugin Name: [Forminator] - Forminator - replace hidden field value with ACF field value
* Description: [Forminator] - Forminator - replace hidden field value with ACF field value
* Author: Adam @ WPMUDEV
* Author URI: https://wpmudev.com
* License: GPLv2 or later
*
* Tested with Forminator 1.24.6 (backwards/future compatibility unknown)
<?php
/**
* Plugin Name: [Smush Pro] - Fix wrong detection of DB version on some DBs
* Description: [Smush Pro] - For some DB version that starts with numbers other than DB version like 5.5.5-10.4.20-MariaDB-1
* Jira: SLS-5120
* Author: Abdoljabbar Bakhshande
* Author URI: https://wpmudev.com
* License: GPLv2 or later
*
* @package WordPress
<?php
/**
* Plugin Name: [Forminator] - Remove captcha for logged-in users
* Description: [Forminator] - Remove captcha for logged-in users
* Author: Adam @ WPMUDEV
* Author URI: https://wpmudev.com
* License: GPLv2 or later
*
* use as MU plugin
* configure form IDs in both $form_ids arrays
@adczk
adczk / smartcrawl-remove-onpage-seo-by-post-type.php
Created June 16, 2023 08:43
SmartCrawl - remove SmartCrawl SEO "onpage seo" metabox from post editor by selected post types
<?php
/**
* Plugin Name: SmartCrawl - remove "onpage seo" by post type
* Description: SmartCrawl - remove SmartCrawl SEO "onpage seo" metabox from post editor by selected post types
* Author: adczk
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*
* USE A MU PLUGIN
@adczk
adczk / forminator-show-entry-front-url-params.php
Last active July 24, 2023 10:13
Forminator - show specific form entry on front, based on URL params
<?php
/**
* Plugin Name: Forminator - show specific form entry on front, based onURL params
* Description: Forminator - show specific form entry on front, based onURL params
* Author: adczk
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*
* USE A MU PLUGIN