• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org
  • Plugins
  • Themes
  • Patterns
  • Learn
  • Support
    • Documentation
    • Forums
  • News
  • About
  • Get Involved
    • Five for the Future
  • Showcase
  • Mobile
  • Hosting
  • Openverse
  • Get WordPress
Get WordPress

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Reference / wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php

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:780

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:793

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:828

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:841

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:866

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:625

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:974

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:641

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:662

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:684

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:722

Used by 2 functions | Uses 7 functions

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:762

Used by 0 functions | Uses 2 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:614

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 14 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::__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

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
  • About
  • News
  • Hosting
  • Donate
  • Support
  • 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
Code is Poetry