Learndash_Admin_Action_Scheduler::add_admin_notice( string $message, string $type = 'error', mixed $related_object, string $redirect_url = '' )
Add an admin notice.
Contents
Description #
Parameters #
- $message
-
(string) (Required) Message to display.
- $type
-
(string) (Optional) Type of the message (WP CSS class).
Default value: 'error'
- $related_object
-
(mixed) (Required) The ID of the object related to the notice. Default 0.
- $redirect_url
-
(string) (Optional) URL to redirect to. Empty to not redirect.
Default value: ''
Source #
File: includes/admin/class-learndash-admin-action-scheduler.php