This file contains hidden or 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 | |
add_action( 'admin_init', '__remove_imagify_notice' ) | |
function __remove_imagify_notice() { | |
remove_filter( 'admin_notices', '_imagify_rocket_notice' ); | |
} |
This file contains hidden or 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 | |
require('wp-load.php'); | |
echo '<pre>; | |
print_r(wp_remote_get("https://app.imagify.io/api/version")); |
This file contains hidden or 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 | |
function __imagify_exclude($attachment_id){ | |
if (in_array(23, 34,439)){ | |
return false; | |
} | |
return true; | |
} | |
add_filter( 'imagify_auto_optimize_attachment', '__imagify_exclude' ); |
This file contains hidden or 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 | |
function no_webp_for_gif( $response, $process, $file, $thumb_size, $optimization_level, $webp, $is_disabled ) { | |
if ( ! $webp || $is_disabled || is_wp_error( $response ) ) { | |
return $response; | |
} | |
| |
if ( 'image/gif' !== $file->get_mime_type() ) { | |
return $response; | |
} |
OlderNewer