This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: EWWW IO Force Resize | |
Description: Skips the file size check after resizing the full-size image. | |
Version: 1.0.0 | |
*/ | |
add_filter( 'ewww_image_optimizer_resize_filesize_ignore', '__return_true' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Easy IO Fit Override | |
Version: 1.0.0 | |
*/ | |
add_filter( 'exactdn_post_image_args', 'easyio_force_fit_scale' ); | |
function easyio_force_fit_scale( $args ) { | |
if ( ! empty( $args['resize'] ) ) { | |
$args['fit'] = $args['resize']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Imsanity Hard Crop | |
Description: Enables the Imsanity and EWWW IO cropping filters. | |
Version: 1.0.0 | |
*/ | |
add_filter( 'imsanity_crop_image', '__return_true' ); | |
add_filter( 'ewww_image_optimizer_crop_image', '__return_true' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Force Regenerate Thumbnails Tweaks | |
Version: 1.0.0 | |
*/ | |
// NOTE: This plugin will do nothing without alterations. Uncomment the add_filter() lines for the filters you wish to use. | |
// If necessary, edit them to your needs. Some filters simply turn things on/off by returning a true or false. | |
// For such filters, using WordPress' built-in __return_true() or __return_false() functions will work just fine, unless | |
// you wish to conditionally enable/disable a feature. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Easy IO Allow AJAX | |
Version: 1.0.0 | |
*/ | |
// Overrides for admin-ajax images. | |
add_filter( 'exactdn_admin_allow_image_downsize', 'easyio_allow_admin_ajax_images', 10, 2 ); | |
add_filter( 'exactdn_admin_allow_image_srcset', 'easyio_allow_admin_ajax_images', 10, 2 ); | |
add_filter( 'exactdn_admin_allow_plugin_url', 'easyio_allow_admin_ajax_images', 10, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: SWIS Pre-Hint Exclusions | |
Version: 1.0.0 | |
*/ | |
// This example uses the same function for both hooks. | |
add_filter( 'swis_skip_preconnect', 'my_swis_prehint_exclusions', 10, 2 ); | |
add_filter( 'swis_skip_prefetch', 'my_swis_prehint_exclusions', 10, 2 ); | |
function my_swis_prehint_exclusions( $skip, $domain ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: EWWW IO Adjust Sharpening | |
Version: 1.0.0 | |
*/ | |
/* | |
* Valid options: | |
* 'FILTER_POINT', | |
* 'FILTER_BOX', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Easy IO Feed Bypass | |
Version: 1.0.0 | |
*/ | |
add_filter( 'exactdn_skip_page', 'easyio_feed_bypass', 10, 2 ); | |
function easyio_feed_bypass( $bypass, $uri ) { | |
if ( false !== strpos( $uri, '/feed/' ) ) { | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Easy IO GIF Skipper | |
Version: 1.0.0 | |
*/ | |
add_filter( 'exactdn_pre_args', 'easyio_skip_gif_resizing', 10, 2 ); | |
function easyio_skip_gif_resizing( $args, $image_url ) { | |
if ( strpos( $image_url, '.gif' ) ) { | |
return array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: SWIS Critical CSS Override | |
Version: 1.0.0 | |
*/ | |
add_filter( 'swis_generate_css_post_fields', 'swis_ccss_override_post_fields' ); | |
function swis_ccss_override_post_fields( $fields ) { | |
if ( is_array( $fields ) ) { | |
$fields['forceInclude'] = array( |