LLMS_Site::check_status()
Check if the site is cloned and not ignored
Return Return
(boolean) Returns true when a clone is detected, otherwise false.
Source Source
File: includes/class.llms.site.php
public static function check_status() {
if ( self::is_clone() && ! self::is_clone_ignored() ) {
/**
* Action triggered when the current website is determined to be a "cloned" site
*
* @since 3.7.4
* @since 4.12.0 Moved from LLMS_Admin_Notices_Core::check_staging().
*/
do_action( 'llms_site_clone_detected' );
return true;
}
return false;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.13.0 | Reverse the order of checks in the if statements for a minor performance improvement when the LLMS_SITE_IS_CLONE constant is being used. |
| 4.12.0 | Introduced. |