media_buttons WordPress Action Hook
The media_buttons hook allows you to add custom buttons to the WordPress Media Library. This hook is typically used to add custom buttons for things like adding shortcodes or custom fields to a post.
do_action( 'media_buttons', string $editor_id ) #
Fires after the default media button(s) are displayed.
Parameters
- $editor_id
(string)Unique editor identifier, e.g. 'content'.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |