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

apply_filters('display_media_states') is found 1 times:

  • /wp-admin/includes/template.php line 2470
    	 * @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: