WP HOOKS
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_url
  • file_send_to_editor_url
  • video_send_to_editor_url

Hook dynamiczny — możliwe nazwy

audio_send_to_editor_urlfile_send_to_editor_urlvideo_send_to_editor_url

Parametry

ParametrTypOpis
$htmlstringHTML markup sent to the editor.
$srcstringMedia source URL.
$titlestringMedia 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
}

Popularne w tej kategorii