LLMS_Admin_Metabox::output_errors()
Display the messages as a WP Admin Notice.
Contents
Return Return
(void)
Source Source
File: includes/abstracts/abstract.llms.admin.metabox.php
* @since 6.0.0 Handle WP_Error objects. * * @return void */ public function output_errors() { $errors = $this->get_errors(); if ( empty( $errors ) ) { return; } foreach ( $errors as $error ) { if ( is_wp_error( $error ) ) { $error = $error->get_error_message();
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.12 | Load errors using $this->get_errors() instead of get_option() . |
3.0.0 | Introduced. |