(type)_send_to_editor_url хук-фильтр . WP 3.3.0
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.
Использование
add_filter( '(type)_send_to_editor_url', 'filter_function_name_73', 10, 3 ); function filter_function_name_73( $html, $src, $title ){ // filter... return $html; }
- $html(строка)
- HTML markup sent to the editor.
- $src(строка)
- Media source URL.
- $title(строка)
- Media title.
Список изменений
С версии 3.3.0 | Введена. |
Где вызывается хук
(type)_send_to_editor_url
(type)_send_to_editor_url
wp-admin/includes/media.php 900
$html = apply_filters( "{$type}_send_to_editor_url", $html, esc_url_raw( $src ), $title );
wp-admin/includes/ajax-actions.php 3338
$html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );