Filters the returned ID of an uploaded attachment. The dynamic portion of the hook name, `$type`, refers to the attachment type. Possible hook names include: - `async_upload_audio` - `async_upload_file` - `async_upload_image` - `async_upload_video`
$id
Sortie :
@param int $id Uploaded attachment ID.
// Modifier la valeur avec le filtre 'async_upload_{$type}'
add_filter('async_upload_{$type}', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($id) {
// Modifier la valeur
return $id;
}
Chargement des actualités...