filtrdynamicznyod 3.3.0
{$type}_send_to_editor_url
Args 3Plik wp-admin/includes/media.php
Opis — z kodu źródłowego
Filters the URL sent to the editor for a specific media type.
The dynamic portion of the hook name, $type, refers to the type of media being sent.
Possible hook names include:
audio_send_to_editor_urlfile_send_to_editor_urlvideo_send_to_editor_url
Hook dynamiczny — możliwe nazwy
audio_send_to_editor_urlfile_send_to_editor_urlvideo_send_to_editor_urlParametry
| Parametr | Typ | Opis |
|---|---|---|
$html | string | HTML markup sent to the editor. |
$src | string | Media source URL. |
$title | string | Media title. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( '{$type}_send_to_editor_url', '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( '{$type}_send_to_editor_url', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii