media_view_strings

media_view_strings

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('media_view_strings') is found 1 times:

  • /wp-includes/media.php line 5026
    	 *
    	 * @param string[] $strings Array of media view strings keyed by the name they'll be referenced by in JavaScript.
    	 * @param WP_Post  $post    Post object.
    	 */
    	$strings = apply_filters( 'media_view_strings', $strings, $post );
    
    	$strings['settings'] = $settings;
    
    	/*
    	 * Ensure we enqueue media-editor first, that way media-views
    	 * is registered internally before we try to localize it. See #24724.