LLMS_Admin_Notices_Core::check_staging()
Outputs a notice that allows users to enable or disable automated recurring payments appears when we identify that the url has changed or when an admin resets the settings from the button on the general settings tab
Description Description
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.notices.core.php
public static function check_staging() { $id = 'maybe-staging'; if ( ! LLMS_Site::is_clone_ignored() && ! LLMS_Admin_Notices::has_notice( $id ) && LLMS_Site::is_clone() ) { do_action( 'llms_site_clone_detected' ); // disable recurring payments immediately. LLMS_Site::update_feature( 'recurring_payments', false ); LLMS_Admin_Notices::add_notice( $id, array( 'type' => 'info', 'dismissible' => false, 'remindable' => false, 'template' => 'admin/notices/staging.php', ) ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.32.0 | Moved logic for handling notice actions to LLMS_Staging::handle_staging_notice_actions(). |
3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: