{$type}_send_to_editor_url WordPress Filter Hook

The {$type}_send_to_editor_url hook allows you to modify the URL that is sent to the editor when an image is inserted into a post. This can be useful if you want to change the default behavior of the image insertion process.

apply_filters( "{$type}_send_to_editor_url", string $html, string $src, string $title ) #

Filters the URL sent to the editor for a specific media type.


Description

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

Top ↑

Parameters

$html

(string)HTML markup sent to the editor.

$src

(string)Media source URL.

$title

(string)Media title.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More