WP_REST_Attachments_Controller::get_media_types

Advertisement

Summery Summery

Retrieves the supported media types.

Syntax Syntax

WP_REST_Attachments_Controller::get_media_types()

Description Description

Media types are considered the MIME type category.

Return Return

(array) Array of supported media types.

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.