LLMS_Admin_Metabox::output_errors()

Display the messages as a WP Admin Notice.


Return Return

(void)


Top ↑

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();

Top ↑

Changelog Changelog

Changelog
Version Description
3.37.12 Load errors using $this->get_errors() instead of get_option().
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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