filtrod 2.6.0
disable_captions
Opis — z kodu źródłowego
Filters whether to disable captions.
Prevents image captions from being appended to image HTML when inserted into the editor.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$bool | bool | Whether to disable appending captions. Returning true from the filter will disable captions. Default empty string. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'disable_captions', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'disable_captions', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii