Skip to content
Permalink
Browse files

add filter for #4

  • Loading branch information...
aristath committed Sep 22, 2019
1 parent 64ab4f3 commit e7273bc32ac7a8f3e441e9899baedd776bc53b2a
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/Notice.php
@@ -136,6 +136,15 @@ public function __construct( $id, $title, $message, $options = [] ) {
return;
}
/**
* Allow filtering the allowed HTML tags array.
*
* @since 1.0.2
* @param array The list of allowed HTML tags.
* @return array
*/
$this->allowed_html = apply_filters( 'wptrt_admin_notices_allowed_html', $this->allowed_html );
// Instantiate the Dismiss object.
$this->dismiss = new Dismiss( $this->id, $this->options['option_prefix'] );
}

0 comments on commit e7273bc

Please sign in to comment.
You can’t perform that action at this time.