wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php


Lines:

1 to 30 of 30
<?php

/**
 * REST API: WP_REST_URL_Details_Controller class
 *
 * @package WordPress
 * @subpackage REST_API
 * @since 5.9.0
 */

/* class WP_REST_URL_Details_Controller */
/* function WP_REST_URL_Details_Controller::__construct() – Constructs the controller. */
/* function WP_REST_URL_Details_Controller::register_routes() – Registers the necessary REST API routes. */
/* function WP_REST_URL_Details_Controller::get_item_schema() – Retrieves the item’s schema, conforming to JSON Schema. */
/* function WP_REST_URL_Details_Controller::parse_url_details() – Retrieves the contents of the `<title>` tag from the HTML response. */
/* function WP_REST_URL_Details_Controller::permissions_check() – Checks whether a given request has permission to read remote urls. */
/* function WP_REST_URL_Details_Controller::get_remote_url() – Retrieves the document title from a remote URL. */
/* function WP_REST_URL_Details_Controller::get_title() – Parses the `<title>` contents from the provided HTML. */
/* function WP_REST_URL_Details_Controller::get_icon() – Parses the site icon from the provided HTML. */
/* function WP_REST_URL_Details_Controller::get_description() – Parses the meta description from the provided HTML. */
/* function WP_REST_URL_Details_Controller::get_image() – Parses the Open Graph (OG) Image from the provided HTML. */
/* function WP_REST_URL_Details_Controller::prepare_metadata_for_output() – Prepares the metadata by:
   – stripping all HTML tags and tag entities. */
/* function WP_REST_URL_Details_Controller::build_cache_key_for_url() – Utility function to build cache key for a given URL. */
/* function WP_REST_URL_Details_Controller::get_cache() – Utility function to retrieve a value from the cache at a given key. */
/* function WP_REST_URL_Details_Controller::set_cache() – Utility function to cache a given data set at a given cache key. */
/* function WP_REST_URL_Details_Controller::get_document_head() – Retrieves the `<head>` section. */
/* function WP_REST_URL_Details_Controller::get_meta_with_content_elements() – Gets all the `<meta>` elements that have a `content` attribute. */
/* function WP_REST_URL_Details_Controller::get_metadata_from_meta_element() – Gets the metadata from a target meta element. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,,