Tribe__Admin__Notices::is_rendered_html( string $slug, string $html )
Checks if a given string is a notice rendered
Contents
Parameters
- $slug
-
(string) (Required) Which notice to check.
- $html
-
(string) (Required) Which html string we are check.
Return
(boolean)
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 );
}
Changelog
| Version | Description |
|---|---|
| 4.7.10 | Introduced. |