Filter hook 'type_url_form_media'

in WP Core File wp-admin/includes/media.php at line 2534

View Source

type_url_form_media

Filter Hook
Description
Filters the insert media from URL form HTML.

Hook Information

File Location wp-admin/includes/media.php View on GitHub
Hook Type Filter
Line Number 2534

Hook Parameters

Type Name Description
string $form_html The insert from URL form HTML.

Usage Examples

Basic Usage
<?php
// Hook into type_url_form_media
add_filter('type_url_form_media', 'my_custom_filter', 10, 1);

function my_custom_filter($form_html) {
    // Your custom filtering logic here
    return $form_html;
}

Source Code Context

wp-admin/includes/media.php:2534 - How this hook is used in WordPress core
<?php
2529  	 *
2530  	 * @since 3.3.0
2531  	 *
2532  	 * @param string $form_html The insert from URL form HTML.
2533  	 */
2534  	echo apply_filters( 'type_url_form_media', wp_media_insert_url_form( $type ) );
2535  
2536  	?>
2537  	</div>
2538  	</div>
2539  	</form>

PHP Documentation

<?php
/**
	 * Filters the insert media from URL form HTML.
	 *
	 * @since 3.3.0
	 *
	 * @param string $form_html The insert from URL form HTML.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/includes/media.php
Related Hooks

Related hooks will be displayed here in future updates.