get_post_format_slugs(): string[] In this article Table of ContentsReturn Source Related Changelog ↑ Back to top Retrieves the array of post format slugs. Return string[] The array of post format slugs as both keys and values. Source function get_post_format_slugs() { $slugs = array_keys( get_post_format_strings() ); return array_combine( $slugs, $slugs ); } View all references View on Trac View on GitHub Related UsesDescriptionget_post_format_strings()wp-includes/post-formats.phpReturns an array of post format slugs to their translated and pretty display versions Used byDescriptioncreate_initial_theme_features()wp-includes/theme.phpCreates the initial theme features when the ‘setup_theme’ action is fired. WP_REST_Posts_Controller::get_item_schema()wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.phpRetrieves the post’s schema, conforming to JSON Schema. add_theme_support()wp-includes/theme.phpRegisters theme support for a given feature. set_post_format()wp-includes/post-formats.phpAssign a format to a post _post_format_request()wp-includes/post-formats.phpFilters the request to allow for the format prefix. Changelog VersionDescription3.1.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.