WC_Helper_Plugin_Info::plugins_api()public staticWC 1.0

Plugin information callback for Woo extensions.

Метод класса: WC_Helper_Plugin_Info{}

Хуков нет.

Возвращает

Объект. An updated $response.

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

$result = WC_Helper_Plugin_Info::plugins_api( $response, $action, $args );
$response(объект) (обязательный)
The response core needs to display the modal.
$action(строка) (обязательный)
The requested plugins_api() action.
$args(объект) (обязательный)
Arguments passed to plugins_api().

Код WC_Helper_Plugin_Info::plugins_api() WC 8.7.0

public static function plugins_api( $response, $action, $args ) {
	if ( 'plugin_information' !== $action ) {
		return $response;
	}
	return self::maybe_override_products_api( $response, $action, $args );
}