wp_smush_image

wp_smush_image

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

apply_filters('wp_smush_image') is found 1 times:

  • /lib/classes/compatibility/wp-smush.php line 72
            }
    
            if (
              !$auto_smush || !wp_attachment_is_image($attachment_id) ||
              !apply_filters('wp_smush_image', true, $attachment_id) ||
              !(
                ((!empty($_POST['action']) && 'upload-attachment' == $_POST['action']) || isset($_POST['post_id'])) &&
                // And, check if Async is enabled.
                defined('WP_SMUSH_ASYNC') && WP_SMUSH_ASYNC)
            ) {
              return false;