filtrod 2.5.0
ext2type
Opis — z kodu źródłowego
Filters file type based on the extension name.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$ext2type | array[] | Multi-dimensional array of file extensions types keyed by the type of file. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'ext2type', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'ext2type', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii