filtrod 2.5.0
media_upload_default_type
Opis — z kodu źródłowego
Filters the default media upload type in the legacy (pre-3.5.0) media popup.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$type | string | The default media upload type. Possible values include 'image', 'audio', 'video', 'file', etc. Default 'file'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'media_upload_default_type', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'media_upload_default_type', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii