LLMS_Admin_Metabox::output_errors()

Display the messages as a WP Admin Notice


Description Description


Return Return

(void)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.admin.metabox.php

	public function output_errors() {

		$errors = get_option( 'lifterlms_metabox_errors' . $this->id );

		if ( empty( $errors ) ) {
			return;
		}

		foreach ( $errors as $error ) {
			echo '<div id="lifterlms_errors" class="error"><p>' . $error . '</p></div>';
		}

		delete_option( 'lifterlms_metabox_errors' . $this->id );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: