wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
Lines:
1 to 38 of 38
<?php /** * REST API: WP_REST_Plugins_Controller class * * @package WordPress * @subpackage REST_API * @since 5.5.0 */ /* class WP_REST_Plugins_Controller */ /* function WP_REST_Plugins_Controller::__construct() – Plugins controller constructor. */ /* function WP_REST_Plugins_Controller::register_routes() – Registers the routes for the plugins controller. */ /* function WP_REST_Plugins_Controller::get_items_permissions_check() – Checks if a given request has access to get plugins. */ /* function WP_REST_Plugins_Controller::get_items() – Retrieves a collection of plugins. */ /* function WP_REST_Plugins_Controller::get_item_permissions_check() – Checks if a given request has access to get a specific plugin. */ /* function WP_REST_Plugins_Controller::get_item() – Retrieves one plugin from the site. */ /* function WP_REST_Plugins_Controller::check_read_permission() – Checks if the given plugin can be viewed by the current user. */ /* function WP_REST_Plugins_Controller::create_item_permissions_check() – Checks if a given request has access to upload plugins. */ /* function WP_REST_Plugins_Controller::create_item() – Uploads a plugin and optionally activates it. */ /* function WP_REST_Plugins_Controller::update_item_permissions_check() – Checks if a given request has access to update a specific plugin. */ /* function WP_REST_Plugins_Controller::update_item() – Updates one plugin. */ /* function WP_REST_Plugins_Controller::delete_item_permissions_check() – Checks if a given request has access to delete a specific plugin. */ /* function WP_REST_Plugins_Controller::delete_item() – Deletes one plugin from the site. */ /* function WP_REST_Plugins_Controller::prepare_item_for_response() – Prepares the plugin for the REST response. */ /* function WP_REST_Plugins_Controller::prepare_links() – Prepares links for the request. */ /* function WP_REST_Plugins_Controller::get_plugin_data() – Gets the plugin header data for a plugin. */ /* function WP_REST_Plugins_Controller::get_plugin_status() – Get’s the activation status for a plugin. */ /* function WP_REST_Plugins_Controller::plugin_status_permission_check() – Handle updating a plugin’s status. */ /* function WP_REST_Plugins_Controller::handle_plugin_status() – Handle updating a plugin’s status. */ /* function WP_REST_Plugins_Controller::validate_plugin_param() – Checks that the "plugin" parameter is a valid path. */ /* function WP_REST_Plugins_Controller::sanitize_plugin_param() – Sanitizes the "plugin" parameter to be a proper plugin file with ".php" appended. */ /* function WP_REST_Plugins_Controller::does_plugin_match_request() – Checks if the plugin matches the requested parameters. */ /* function WP_REST_Plugins_Controller::is_plugin_installed() – Checks if the plugin is installed. */ /* function WP_REST_Plugins_Controller::is_filesystem_available() – Determine if the endpoints are available. */ /* function WP_REST_Plugins_Controller::get_item_schema() – Retrieves the plugin’s schema, conforming to JSON Schema. */ /* function WP_REST_Plugins_Controller::get_collection_params() – Retrieves the query params for the collections. */