LLMS_Add_On::get_permalink()

Retrieve a utm’d link to the add-on


Return Return

(string)


Top ↑

Source Source

File: includes/models/model.llms.add-on.php

	public function get_permalink() {

		$url = add_query_arg(
			array(
				'utm_source'   => rawurlencode( 'LifterLMS Plugin' ),
				'utm_campaign' => rawurlencode( 'Plugin to Sale' ),
				'utm_medium'   => rawurlencode( 'Add-Ons Screen' ),
				'utm_content'  => rawurlencode( sprintf( '%1$s Ad %2$s', $this->get( 'title' ), LLMS_VERSION ) ),
			),
			$this->get( 'permalink' )
		);

		return $url;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.21.3 Use rawurlencode() in favor of urlencode().
3.22.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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