LLMS_Add_On::get_permalink()
Retrieve a utm’d link to the add-on
Return Return
(string)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.21.3 | Use rawurlencode() in favor of urlencode() . |
3.22.0 | Introduced. |