filtrod 2.5.0
media_send_to_editor
Opis — z kodu źródłowego
Filters the HTML markup for a media item sent to the editor.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$html | string | HTML markup for a media item sent to the editor. |
$send_id | int | The first key from the $_POST['send'] data. |
$attachment | array | Array of attachment metadata. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'media_send_to_editor', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'media_send_to_editor', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii