Skip to content

Instantly share code, notes, and snippets.

View alfredo-wpmudev's full-sized avatar
🏠
Working from home

Alfredo Galano Loyola alfredo-wpmudev

🏠
Working from home
View GitHub Profile
<?php
/**
* Plugin Name: [Forminator] - Pagination skip empty pages
* Plugin URI: https://premium.wpmudev.org
* Description: A custom snippet that allows skipping empty pages when Pagination is used.
* Task: SLS-2198
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
<?php
/**
* Plugin Name: Add shortcode list all blog sites
* Description: Add shortcode list all blog sites ([wpmudev_list_all_blogs]) - 1155576029146873
* Author: Thobk @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
return;
@alfredo-wpmudev
alfredo-wpmudev / forminator-fix-asian-language-character.php
Created January 3, 2024 19:06 — forked from wpmudev-sls/forminator-fix-asian-language-character.php
[Forminator Pro] - Fix weird characters on Forminator PDF when language is asian
<?php
/**
* Plugin Name: [Forminator Pro] Fix weird characters on Forminator PDF when language is asian
* Description: Fixes weird characters on Forminator PDF when language is asian
* Author: Prashant @ WPMUDEV
* Task: SLS-5220
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
<?php
/**
* Plugin Name: [Smush Pro] Image Recheck Fix.
* Description: [Smush Pro] Fixes the issue of image recheck failure.
* Jira: SLS-5161
* Author: Abdoljabbar Bakhshande
* Author URI: https://wpmudev.com
* License: GPLv2 or later
*
* @package WordPress
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class WDEV_Smush_Fix_Keep_Showing_Resmush {
private $smush_settings;
private $webp_helper;
private $webp_dir;
private $media_item_cache;
public $exclude_size_names = array( 'full' );
@alfredo-wpmudev
alfredo-wpmudev / smush-original-images.php
Created November 11, 2023 23:01 — forked from wpmudev-sls/smush-original-images.php
[Smush] - Original Images. Currently has option oly to delete them
<?php
/**
* Plugin Name: [Smush] - Original Images
* Plugin URI: https://premium.wpmudev.org/
* Description: Displays all original images so they can be deleted. Requires Smush
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
<?php
/**
* Plugin Name: [Smush Pro] Image Recheck Failure.
* Description: Changes async request method from POST to GET to fix image recheck failures.
* Jira: SLS-5197
* Author: Abdoljabbar Bakhshande
* Author URI: https://wpmudev.com
* License: GPLv2 or later
*
* @package WordPress
@alfredo-wpmudev
alfredo-wpmudev / wp-dir-file-permissions-reset.php
Created October 21, 2023 22:08 — forked from ali7ali/wp-dir-file-permissions-reset.php
WordPress Directories & Files Permissions reset
<?php // phpcs:ignore -- \r\n notice.
/**
* Plugin Name: WordPress Directories & Files Permissions reset
* Description: Correct WordPress directories/files permissions.
* Author: Ali Ali
<?php
/**
* Plugin Name: [Forminator] - Remove field IDs from header row values
* Plugin URI: https://premium.wpmudev.org/
* Description: Removes field IDs from header row values of googlesheet
* Task: SLS-4106
* Author: Prashant Singh @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@alfredo-wpmudev
alfredo-wpmudev / hummingbird-minify-oom-fix.php
Created July 16, 2023 23:31 — forked from wpmudev-sls/hummingbird-minify-oom-fix.php
[Hummingbird Pro] Fix OOM error when a huge amount of wphb_minify_group posts are present
<?php
/**
* Plugin Name: [Hummingbird Pro] Fix OOM error when a huge amount of wphb_minify_group posts are present
* Description: Limits the query that retrieves the minify groups to 10 to prevent an excessive resource usage on the server
* Author: Anderson Salas @ WPMUDEV
* Task: SLS-4065, SLS-4071
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/