media_buttons_context filter-hookWP 2.5.0

Deprecated from version 3.5.0. It is no longer supported and can be removed in future releases. See media_buttons.

Filters the legacy (pre-3.5.0) media buttons.

Use media_buttons action instead.

Usage

add_filter( 'media_buttons_context', 'wp_kama_media_buttons_context_filter' );

/**
 * Function for `media_buttons_context` filter-hook.
 * 
 * @param  $string 
 *
 * @return 
 */
function wp_kama_media_buttons_context_filter( $string ){

	// filter...
	return $string;
}
$string
-

Changelog

Since 2.5.0 Introduced.
Deprecated since 3.5.0 Use {@see 'media_buttons'} action instead.

Where the hook is called

media_buttons()
media_buttons_context
wp-admin/includes/media.php 674
$legacy_filter = apply_filters_deprecated( 'media_buttons_context', array( '' ), '3.5.0', 'media_buttons' );

Where the hook is used in WordPress

Usage not found.