media_view_strings

media_view_strings

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('media_view_strings') is found 1 times:

  • /wp-includes/media.php line 5074
    5070
    5071
    5072
    5073
    5074
    5075
    5076
    5077
    5078
    5079
    5080
    *
     * @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.