WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

Automattic\Jetpack\Autoloader\jpe7838abe751421865f42aa61338ab306

Plugin_Locator::find_using_request_action() public WC 1.0

Checks for plugins in the action request parameter.

{} Это метод класса: Plugin_Locator{}

Хуков нет.

Возвращает

Массив. $plugin_paths The list of absolute paths we've found.

Использование

$Plugin_Locator = new Plugin_Locator();
$Plugin_Locator->find_using_request_action( $allowed_actions );
$allowed_actions(строка[]) (обязательный)
The actions that we're allowed to return plugins for.

Код Plugin_Locator::find_using_request_action() WC 5.2.2

<?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 );
}