WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader\jpfd0d177b2d8140b4b20d4474b07b8ed7

Plugin_Locator::find_using_request_action() public WC 1.0

Checks for plugins in the action request parameter.

{} It's a method of the class: Plugin_Locator{}

No Hooks.

Return

Array. $plugin_paths The list of absolute paths we've found.

Usage

$Plugin_Locator = new Plugin_Locator();
$Plugin_Locator->find_using_request_action( $allowed_actions );
$allowed_actions(string[]) (required)
The actions that we're allowed to return plugins for.

Code of Plugin_Locator::find_using_request_action() WC 5.3.0

<?php
public function find_using_request_action( $allowed_actions ) {
	// phpcs:disable WordPress.Security.NonceVerification.Recommended

	/**
	 * Note: we're not actually checking the nonce here because it's too early
	 * in the execution. The pluggable functions are not yet loaded to give
	 * plugins a chance to plug their versions. Therefore we're doing the bare
	 * minimum: checking whether the nonce exists and it's in the right place.
	 * The request will fail later if the nonce doesn't pass the check.
	 */
	if ( empty( $_REQUEST['_wpnonce'] ) ) {
		return array();
	}

	$action = isset( $_REQUEST['action'] ) ? wp_unslash( $_REQUEST['action'] ) : false;
	if ( ! in_array( $action, $allowed_actions, true ) ) {
		return array();
	}

	$plugin_slugs = array();
	switch ( $action ) {
		case 'activate':
		case 'deactivate':
			if ( empty( $_REQUEST['plugin'] ) ) {
				break;
			}

			$plugin_slugs[] = wp_unslash( $_REQUEST['plugin'] );
			break;

		case 'activate-selected':
		case 'deactivate-selected':
			if ( empty( $_REQUEST['checked'] ) ) {
				break;
			}

			$plugin_slugs = wp_unslash( $_REQUEST['checked'] );
			break;
	}

	// phpcs:enable WordPress.Security.NonceVerification.Recommended
	return $this->convert_plugins_to_paths( $plugin_slugs );
}