Automator_Send_Webhook::maybe_parse_tokens( $value,  $parsing_args )

Parse values in to key/value fields


Parameters Parameters

$value

(Required)

$parsing_args

(Required)


Top ↑

Return Return

(string|null)


Source Source

File: src/core/lib/webhooks/class-automator-send-webhook.php

	public function maybe_parse_tokens( $value, $parsing_args ) {
		if ( empty( $parsing_args ) ) {
			return sanitize_text_field( $value );
		}

		return Automator()->parse->text( $value, $parsing_args['recipe_id'], $parsing_args['user_id'], $parsing_args['args'] );
	}