Skip to content

Commit e7273bc

Browse files
committed
add filter for #4
1 parent 64ab4f3 commit e7273bc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Notice.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ public function __construct( $id, $title, $message, $options = [] ) {
136136
return;
137137
}
138138

139+
/**
140+
* Allow filtering the allowed HTML tags array.
141+
*
142+
* @since 1.0.2
143+
* @param array The list of allowed HTML tags.
144+
* @return array
145+
*/
146+
$this->allowed_html = apply_filters( 'wptrt_admin_notices_allowed_html', $this->allowed_html );
147+
139148
// Instantiate the Dismiss object.
140149
$this->dismiss = new Dismiss( $this->id, $this->options['option_prefix'] );
141150
}

0 commit comments

Comments
 (0)