media_buttons
This is a WordPress - media_buttons hook. The plugin just uses it.
Fires after the default media button(s) are displayed.
Usage
add_action( 'media_buttons', 'wp_kama_media_buttons_action' );
/**
* Function for `media_buttons` action-hook.
*
* @param string $editor_id Unique editor identifier, e.g. 'content'.
*
* @return void
*/
function wp_kama_media_buttons_action( $editor_id ){
// action...
}
- $editor_id(string)
- Unique editor identifier, e.g. 'content'.
Where the hook is called
media_buttons
acf/includes/fields/class-acf-field-wysiwyg.php 276
do_action( 'media_buttons', $id );