LLMS_Site::get_lock_url()
Get the lock url for the current site.
Description Description
Gets the WP site url and inserts the lock string into the (approximate) middle of the url.
Return Return
(string)
Source Source
File: includes/class.llms.site.php
public static function get_lock_url() { $site_url = get_site_url(); return substr_replace( $site_url, self::$lock_string, intval( strlen( $site_url ) / 2 ), 0 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.9.0 | Pass an explicit integer to substr_replace() . |
3.0.0 | Introduced. |