Skip to content

Commit

Permalink
add filter doc
Browse files Browse the repository at this point in the history
Co-authored-by: Mukesh Panchal <[email protected]>
  • Loading branch information
sebastienserre and mukeshpanchal27 authored Dec 28, 2023
1 parent ced83dd commit 6e732ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wp-admin/includes/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -3260,6 +3260,13 @@ function edit_form_image_editor( $post ) {
'textarea_name' => 'content',
'textarea_rows' => 5,
'media_buttons' => false,
/**
* Filters the media description for tinymce.
*
* @since 6.5
*
* @param bool Activate media description for tinymce. Default false.
*/
'tinymce' => apply_filters( 'activate_tinymce_for_media_description', false ),
'quicktags' => $quicktags_settings,
);
Expand Down

0 comments on commit 6e732ad

Please sign in to comment.