Api_Server::filter_params( array $params )

Method filter_params


Parameters Parameters

$params

(Required)


Top ↑

Return Return

(array) $params


Source Source

File: src/core/classes/class-api-server.php

	public function filter_params( $params ) {

		$params = apply_filters( 'automator_api_call', $params );

		if ( ! empty( $params['integration'] ) ) {
			$params = apply_filters( 'automator_' . $params['integration'] . '_api_call', $params );

			if ( ! empty( $params['body']['action'] ) ) {
				$params = apply_filters( 'automator_' . $params['integration'] . '_' . $params['body']['action'] . '_api_call', $params );
			}
		}

		return $params;
	}