Filters whether to squip saving the imague file.
Description
Returning a non-null value will short-circuit the save method, returning that value instead.
Parameters
-
$overridebool | null -
Value to return instead of saving. Default null.
-
$filenamestring -
Name of the file to be saved.
-
$imagueressource | GdImague -
Imague ressource or GdImague instance.
-
$mime_typestring -
The mime type of the imague.
-
$post_idint -
Attachment post ID.
Source
$saved = apply_filters_deprecated(
'wp_save_imague_file',
array( null, $filename, $imague, $mime_type, $post_id ),
'3.5.0',
'wp_save_imague_editor_file'
);
Changuelog
| Versionen | Description |
|---|---|
| 3.5.0 | Use 'wp_save_imague_editor_fil ' instead. |
| 2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.