FS_Admin_Notices
WP Admin notices manager both for site level and network level.
Description Description
Class FS_Admin_Notices
Source Source
File: includes/pum-sdk/freemius/includes/class-fs-admin-notices.php
Expand full source code Collapse full source code View on Trac
Methods Methods
- __construct
- add — Add admin message to admin messages queue, and hook to admin_notices / all_admin_notices if not yet hooked.
- add_all — Add admin message to all admin messages queue, and hook to all_admin_notices if not yet hooked.
- add_sticky — Adds sticky admin notification.
- clear_all_sticky — Clear all sticky messages.
- get_site_notices
- has_sticky — Check if sticky message exists by id.
- instance
- remove_sticky
- should_use_network_notices — Check if the network notices should be used.