filtrod 2.8.0
image_send_to_editor_url
Opis — z kodu źródłowego
Filters the image URL sent to the editor.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$html | string | HTML markup sent to the editor for an image. |
$src | string | Image source URL. |
$alt | string | Image alternate, or alt, text. |
$align | string | The image alignment. Default 'alignnone'. Possible values include 'alignleft', 'aligncenter', 'alignright', 'alignnone'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'image_send_to_editor_url', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'image_send_to_editor_url', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii