get_available_post_mime_types example


function wp_edit_attachments_query( $q = false ) {
    wp( wp_edit_attachments_query_vars( $q ) );

    $post_mime_types       = get_post_mime_types();
    $avail_post_mime_types = get_available_post_mime_types( 'attachment' );

    return array( $post_mime_types$avail_post_mime_types );
}

/** * Returns the list of classes to be used by a meta box. * * @since 2.5.0 * * @param string $box_id Meta box ID (used in the 'id' attribute for the meta box). * @param string $screen_id The screen on which the meta box is shown. * @return string Space-separated string of class names. */
Home | Imprint | This part of the site doesn't use cookies.