Skip to content

Commit

Permalink
add filter for #4
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Sep 22, 2019
1 parent 64ab4f3 commit e7273bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Notice.php
Expand Up @@ -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'] );
}
Expand Down

0 comments on commit e7273bc

Please sign in to comment.