Tribe__Admin__Notices::is_rendered_html( string $slug, string $html )

Checks if a given string is a notice rendered


Parameters

$slug

(string) (Required) Which notice to check.

$html

(string) (Required) Which html string we are check.


Top ↑

Return

(boolean)


Top ↑

Source

File: src/Tribe/Admin/Notices.php

	public function is_rendered_html( $slug, $html ) {
		if ( ! $this->exists( $slug ) ) {
			return false;
		}

		$search = sprintf( 'data-ref="%s"', $slug );

		return false !== strpos( $html, $search );
	}

Top ↑

Changelog

Changelog
Version Description
4.7.10 Introduced.