BSF_Envato_Activate::envato_activation_url( array $form_data )

Envato activation URL.


Description


Parameters

$form_data

(array) (Required) Form data.


Return

($envato_activation_url.)


Source

File: admin/bsf-core/class-bsf-envato-activate.php

	public function envato_activation_url( $form_data ) {
		$product_id = isset( $form_data['product_id'] ) ? esc_attr( $form_data['product_id'] ) : '';

		$form_data['token'] = sha1( $this->create_token( $product_id ) );
		$url                = bsf_get_api_site() . 'envato-validation-callback/?wp-envato-validate';

		$envato_activation_url = add_query_arg(
			$form_data,
			$url
		);

		return $envato_activation_url;
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.