Filters whether to preempt the XML-RPC media upload. Returning a truthy value will effectively short-circuit the media upload, returning that value as a 500 error instead.
false
Sortie :
@param bool $error Whether to pre-empt the media upload. Default false.
// Modifier la valeur avec le filtre 'pre_upload_error'
add_filter('pre_upload_error', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(false) {
// Modifier la valeur
return false;
}
Chargement des actualités...