Tribe__Admin__Notices::get( string $slug = null )

Gets the configuration for the Notices


Parameters

$slug

(string) (Optional)

Default value: null


Top ↑

Return

(object|array|null)


Top ↑

Source

File: src/Tribe/Admin/Notices.php

	public function get( $slug = null ) {
		// Prevent weird stuff here
		$slug = sanitize_title_with_dashes( $slug );

		if ( is_null( $slug ) ) {
			return $this->notices;
		}

		if ( ! empty( $this->notices[ $slug ] ) ) {
			return $this->notices[ $slug ];
		}

		return null;
	}

Top ↑

Changelog

Changelog
Version Description
4.3 Introduced.