Skip to content

Instantly share code, notes, and snippets.

View wpmudev-sls's full-sized avatar

WPMUDEV SLS Snippets - Unofficial wpmudev-sls

View GitHub Profile
@wpmudev-sls
wpmudev-sls / hb-custom-home-cache-clear.php
Last active June 13, 2024 01:48
[Hummingbird Pro] Clear homepage cache programmatically when a post is updated
<?php
/**
* Plugin Name: [Hummingbird Pro] Clear homepage cache programmatically when a post is updated
* Description: Useful when the "Clear full cache when post/page is updated" option needs to remain disabled
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-6215
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / smartcrawl-sabai-directory-sitemap.php
Last active June 12, 2024 03:11
[SmartCrawl Pro] Add Sabai Directory listings to sitemap
<?php
/**
* Plugin Name: [SmartCrawl Pro] Add Sabai Directory listings to sitemap
* Description: Adds a new "directory-listing" item to the sitemap index, which contains URLs from the Sabai Directory listings
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-6159
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / defender-edd-recaptcha.php
Last active June 6, 2024 23:32
[Defender Pro] reCaptcha compatibility with Easy Digital Downloads plugin
<?php
/**
* Plugin Name: [Defender Pro] reCaptcha compatibility with Easy Digital Downloads plugin
* Description: Adds a custom reCaptcha integration to the Easy Digital Downloads login shortcode
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-6194
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / forminator-different-redirect-aweber-submission.php
Last active May 30, 2024 13:22
[Forminator Pro] - DIfferent redirect based on integration (Aweber) submission result
<?php
/**
* Plugin Name: [Forminator Pro] DIfferent redirect based on Aweber integration submission result
* Description: DIfferent redirect based on Aweber integration submission result.
* Author: Prashant @ WPMUDEV
* Task: SLS-6184
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / forminator-redirect-user-site.php
Last active May 30, 2024 13:10
[Forminator Pro] - Redirect user to own site after activation
<?php
/**
* Plugin Name: [Forminator Pro] Redirect user to own site after activation
* Description: Redirect user to own site after activation.
* Author: Prashant @ WPMUDEV
* Task: SLS-6183
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / forminator-response-count-personality-quiz.php
Last active May 30, 2024 13:03
[Forminator Pro] - Number of responses for each question in personality quiz
<?php
/**
* Plugin Name: [Forminator Pro] Number of responses for each question in personality quiz
* Description: Show number of responses for each question in personality quiz.
* Author: Prashant @ WPMUDEV
* Task: SLS-6162
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / thc-remove-wp-admin-references.php
Last active May 30, 2024 13:04
[THC] - Remove WP admin references from the hub client
<?php
/**
* Plugin Name: [The Hub Client] Remove WP Admin references
* Description: Removes WP Admin references from the hub page.
* Author: Prashant @ WPMUDEV
* Task: SLS-6140
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / forminator-youtube-url-validate.php
Last active May 30, 2024 12:47
[Forminator Pro] - Youtube URL validation
<?php
/**
* Plugin Name: [Forminator Pro] Youtube URL validation
* Description: Validates youtube URL.
* Author: Prashant @ WPMUDEV
* Task: SLS-6188
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
@wpmudev-sls
wpmudev-sls / smarcrawl_opengraph_filter.php
Last active May 28, 2024 04:41
[SmartCrawl Pro] Open Graph data filter
<?php
/**
* Plugin Name: [SmartCrawl Pro] Open Graph data filter
* Description: Adds a wds_opengraph_printer_data filter, useful to modify the Open Graph data before printing it
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-6172
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
<?php
/**
* Note this snippet code might only helpful when loopback request is healthy from your site, you can check it
* on page Tools->Site Healthy:
* https://www.awesomescreenshot.com/image/48378734?key=386be0c026074a4650500ac184f9b8a5
*/
function wdev_smush_fix_loopback_issue() {
// Check if Smush Pro is active and its version.
if ( ! class_exists( 'WP_Smush' ) ) {
return;