LLMS_Admin_Notices_Core::maybe_hide_notices()

Don’t display notices on specific pages


Return Return

(void)


Top ↑

Source Source

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

114
115
116
117
118
119
120
121
122
123
124
125
public static function maybe_hide_notices() {
 
    $screen = get_current_screen();
 
    if ( $screen && 'admin_page_llms-course-builder' === $screen->id ) {
 
        remove_all_actions( 'admin_notices' ); // 3rd party notices.
        remove_action( 'admin_print_styles', array( 'LLMS_Admin_Notices', 'output_notices' ) ); // Notices output by LifterLMS.
 
    }
 
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.16.14 Unknown.
3.14.8 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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