activate_tinymce_for_media_description filter-hookWP 6.6.0

Filters the TinyMCE argument for the media description field on the attachment details screen.

Usage

add_filter( 'activate_tinymce_for_media_description', 'wp_kama_activate_tinymce_for_media_description_filter' );

/**
 * Function for `activate_tinymce_for_media_description` filter-hook.
 * 
 * @param bool $tinymce Whether to activate TinyMCE in media description field.
 *
 * @return bool
 */
function wp_kama_activate_tinymce_for_media_description_filter( $tinymce ){

	// filter...
	return $tinymce;
}
$tinymce(true|false)
Whether to activate TinyMCE in media description field.
Default: false

Changelog

Since 6.6.0 Introduced.

Where the hook is called

edit_form_image_editor()
activate_tinymce_for_media_description
wp-admin/includes/media.php 3277
'tinymce'       => apply_filters( 'activate_tinymce_for_media_description', false ),

Where the hook is used in WordPress

Usage not found.