LLMS_Admin_Notices_Core::add_init_actions()
Add actions on different hooks depending on the current screen
Description Description
Adds later for LLMS Settings screens to accommodate for settings that are updated later in the load cycle.
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.notices.core.php
*/ public static function add_init_actions() { $screen = get_current_screen(); if ( ! empty( $screen->base ) && 'lifterlms_page_llms-settings' === $screen->base ) { $action = 'lifterlms_settings_notices'; $priority = 5; } else { $action = 'current_screen'; $priority = 77; } add_action( $action, array( __CLASS__, 'gateways' ), $priority ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.12.0 | Remove hook for deprecated check_staging() notice. |
3.0.0 | Introduced. |