LLMS_Admin_Notices::load_notices()

Loads stored notice IDs from the database


Description Description

Handles potentially malformed data by ensuring that only an array of strings can be loaded.


Top ↑

Return Return

(string[])


Top ↑

Source Source

File: includes/admin/class.llms.admin.notices.php

	 * Handles potentially malformed data by ensuring that only an array of strings
	 * can be loaded.
	 *
	 * @since 4.13.0
	 *
	 * @return string[]
	 */
	protected static function load_notices() {

		$notices = get_option( 'llms_admin_notices', array() );

		if ( ! is_array( $notices ) ) {
			$notices = array( $notices );
		}

		// Remove empty and non-string values.
		return array_filter(


Top ↑

Changelog Changelog

Changelog
Version Description
4.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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