media_view_settings WordPress Filter Hook
The media_view_settings hook allows you to modify the default settings for the media viewer. This is useful if you want to change the default behavior or appearance of the media viewer.
apply_filters( 'media_view_settings', array $settings , WP_Post $post ) #
Filters the media view settings.
Parameters
- $settings
(array)List of media view settings.
- $post
(WP_Post)Post object.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |