Filters whether to skip saving the image file. Returning a non-null value will short-circuit the save method, returning that value instead.
null, $filename, $image, $mime_type, $post_id
Sortie :
@param bool|null $override Value to return instead of saving. Default null. @param string $filename Name of the file to be saved. @param WP_Image_Editor $image The image editor instance. @param string $mime_type The mime type of the image. @param int $post_id Attachment post ID.
// Modifier la valeur avec le filtre 'wp_save_image_editor_file'
add_filter('wp_save_image_editor_file', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...