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.


Top ↑

Return Return

(void)


Top ↑

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

	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.12.0 Remove hook for deprecated check_staging() notice.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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