display_media_states

display_media_states

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('display_media_states') is found 1 times:

  • /wp-admin/includes/template.php line 2470
    2466
    2467
    2468
    2469
    2470
    2471
    2472
    2473
    2474
    2475
    2476
         * @param string[] $media_states An array of media states. Default 'Header Image',
         *                               'Background Image', 'Site Icon', 'Logo'.
         * @param WP_Post  $post         The current attachment object.
         */
        return apply_filters( 'display_media_states', $media_states, $post );
    }
     
    /**
     * Tests support for compressing JavaScript from PHP.
     *
     * Outputs JavaScript that tests if compression from PHP works as expected

See this hook used in plugins: