type_url_form_media
Filters the insert media from URL form HTML.
Usage
add_filter( 'type_url_form_media', 'wp_kama_type_url_form_media_filter' );
/**
* Function for `type_url_form_media` filter-hook.
*
* @param string $form_html The insert from URL form HTML.
*
* @return string
*/
function wp_kama_type_url_form_media_filter( $form_html ){
// filter...
return $form_html;
}
- $form_html(string)
- The insert from URL form HTML.
Changelog
| Since 3.3.0 | Introduced. |
Where the hook is called
wp-admin/includes/media.php 2553
echo apply_filters( 'type_url_form_media', wp_media_insert_url_form( $type ) );