media_view_strings filter-hook . WP 3.5.0
Filters the media view strings.
Usage
add_filter( 'media_view_strings', 'filter_function_name_1793', 10, 2 ); function filter_function_name_1793( $strings, $post ){ // filter... return $strings; }
- $strings(string[])
- Array of media view strings keyed by the name they'll be referenced by in JavaScript.
- $post(WP_Post)
- Post object.
Changelog
Since 3.5.0 | Introduced. |
Where the hook is called
media_view_strings
wp-includes/media.php 4416
$strings = apply_filters( 'media_view_strings', $strings, $post );