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.


Top ↑

Return Return

(string)


Top ↑

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 );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.9.0 Pass an explicit integer to substr_replace().
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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