Add output notice actions depending on the current screen.

Description Description

Notices are added later for LifterLMS settings screens to accommodate settings that are updated later in the load cycle.

Top ↑

Return Return


Top ↑

Source Source

File: includes/admin/class.llms.admin.notices.php

	public static function add_output_actions() {

		$screen = get_current_screen();
		if ( ! empty( $screen->base ) && 'lifterlms_page_llms-settings' === $screen->base ) {
			add_action( 'lifterlms_settings_notices', array( __CLASS__, 'output_notices' ) );
		} else {
			add_action( 'admin_notices', array( __CLASS__, 'output_notices' ) );


Top ↑

Changelog Changelog

Version Description
5.9.0 Output notices at admin_notices in favor of admin_print_styles.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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