BSF_Envato_Activate::inline_alternate_method_link( string $html, int $bsf_product_id )

Inline alternate method link.


Description


Parameters

$html

(string) (Required) HTML.

$bsf_product_id

(int) (Required) Product ID.


Return

($html.)


Source

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

	public function inline_alternate_method_link( $html, $bsf_product_id ) {
		$privacy_policy_link   = $this->license_manager->bsf_get_product_info( $bsf_product_id, 'privacy_policy' );
		$terms_conditions_link = $this->license_manager->bsf_get_product_info( $bsf_product_id, 'terms_conditions' );

		if ( isset( $privacy_policy_link ) ) {
			$html .= sprintf(
				'<a class="license-form-external-links" target="_blank" href="%s">Privacy Policy</a> | ',
				$privacy_policy_link
			);
		}

		if ( isset( $terms_conditions_link ) ) {
			$html .= sprintf(
				'<a class="license-form-external-links" target="_blank" href="%s">Terms & Conditions</a>',
				$terms_conditions_link
			);
		}

		return $html;
	}

User Contributed Notes

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