media_buttons_context

media_buttons_context

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('media_buttons_context') is found 1 times:

  • /wp-admin/includes/media.php line 657
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    * @deprecated 3.5.0 Use {@see 'media_buttons'} action instead.
     *
     * @param string $string Media buttons context. Default empty.
     */
    $legacy_filter = apply_filters( 'media_buttons_context', '' );
     
    if ( $legacy_filter ) {
        // #WP22559. Close <a> if a plugin started by closing <a> to open their own <a> tag.
        if ( 0 === stripos( trim( $legacy_filter ), '</a>' ) ) {
            $legacy_filter .= '</a>';
        }