Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php

WP_REST_Plugins_Controller::validate_plugin_param()

Method: Checks that the “plugin” parameter is a valid path.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:774

Used by 0 functions | Uses 2 functions

WP_REST_Plugins_Controller::sanitize_plugin_param()

Method: Sanitizes the “plugin” parameter to be a proper plugin file with “.php” appended.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:792

Used by 0 functions | Uses 2 functions

WP_REST_Plugins_Controller::does_plugin_match_request()

Method: Checks if the plugin matches the requested parameters.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:805

Used by 1 function | Uses 1 function

WP_REST_Plugins_Controller::is_plugin_installed()

Method: Checks if the plugin is installed.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:840

Used by 1 function | Uses 0 functions

WP_REST_Plugins_Controller::is_filesystem_available()

Method: Determine if the endpoints are available.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:853

Used by 2 functions | Uses 5 functions

WP_REST_Plugins_Controller::get_item_schema()

Method: Retrieves the plugin’s schema, conforming to JSON Schema.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:878

Used by 0 functions | Uses 2 functions

WP_REST_Plugins_Controller::prepare_links()

Method: Prepares links for the request.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:630

Used by 1 function | Uses 1 function

WP_REST_Plugins_Controller::get_collection_params()

Method: Retrieves the query params for the collections.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:986

Used by 1 function | Uses 3 functions

WP_REST_Plugins_Controller::get_plugin_data()

Method: Gets the plugin header data for a plugin.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:653

Used by 3 functions | Uses 3 functions

WP_REST_Plugins_Controller::get_plugin_status()

Method: Get’s the activation status for a plugin.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:674

Used by 4 functions | Uses 2 functions

WP_REST_Plugins_Controller::plugin_status_permission_check()

Method: Handle updating a plugin’s status.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:696

Used by 2 functions | Uses 5 functions

WP_REST_Plugins_Controller::handle_plugin_status()

Method: Handle updating a plugin’s status.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:734

Used by 2 functions | Uses 7 functions

WP_REST_Plugins_Controller::update_item()

Method: Updates one plugin.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:461

Used by 0 functions | Uses 5 functions

WP_REST_Plugins_Controller::delete_item_permissions_check()

Method: Checks if a given request has access to delete a specific plugin.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:495

Used by 0 functions | Uses 6 functions

WP_REST_Plugins_Controller::delete_item()

Method: Deletes one plugin from the site.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:529

Used by 0 functions | Uses 8 functions

WP_REST_Plugins_Controller::prepare_item_for_response()

Method: Prepares the plugin for the REST response.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:578

Used by 5 functions | Uses 5 functions

WP_REST_Plugins_Controller::get_items()

Method: Retrieves a collection of plugins.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:132

Used by 0 functions | Uses 5 functions

rest_prepare_plugin

Filter Hook: Filters plugin data for a REST API response.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:619

Used by 1 function | Uses 0 functions

WP_REST_Plugins_Controller::get_item_permissions_check()

Method: Checks if a given request has access to get a specific plugin.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:162

Used by 0 functions | Uses 6 functions

WP_REST_Plugins_Controller::get_item()

Method: Retrieves one plugin from the site.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:188

Used by 0 functions | Uses 3 functions

WP_REST_Plugins_Controller::check_read_permission()

Method: Checks if the given plugin can be viewed by the current user.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:211

Used by 4 functions | Uses 8 functions

WP_REST_Plugins_Controller::create_item_permissions_check()

Method: Checks if a given request has access to upload plugins.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:241

Used by 0 functions | Uses 4 functions

WP_REST_Plugins_Controller::create_item()

Method: Uploads a plugin and optionally activates it.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:273

Used by 0 functions | Uses 13 functions

WP_REST_Plugins_Controller::update_item_permissions_check()

Method: Checks if a given request has access to update a specific plugin.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:423

Used by 0 functions | Uses 8 functions

WP_REST_Plugins_Controller

Class: Core class to access plugins via the REST API.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:17

Used by 0 functions | Uses 1 function

WP_REST_Plugins_Controller::__construct()

Method: Plugins controller constructor.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:26

Used by 1 function | Uses 0 functions

WP_REST_Plugins_Controller::register_routes()

Method: Registers the routes for the plugins controller.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:36

Used by 0 functions | Uses 4 functions

WP_REST_Plugins_Controller::get_items_permissions_check()

Method: Checks if a given request has access to get plugins.

Source: wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php:112

Used by 0 functions | Uses 4 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry