| 1 |
<?php |
| 2 |
|
| 3 |
namespace Barn2\PTS_Lib\Admin; |
| 4 |
|
| 5 |
/** |
| 6 |
* Extends the WPTRT Notices class to allow additional HTML in the admin notice. |
| 7 |
* |
| 8 |
* @package Barn2\barn2-lib |
| 9 |
* @author Barn2 Plugins <support@barn2.com> |
| 10 |
* @license GPL-3.0 |
| 11 |
* @copyright Barn2 Media Ltd |
| 12 |
*/ |
| 13 |
class Notices extends \WPTRT\AdminNotices\Notices { |
| 14 |
|
| 15 |
public function __construct() { |
| 16 |
add_filter( 'wptrt_admin_notices_allowed_html', [ __CLASS__, 'filter_allowed_html' ] ); |
| 17 |
} |
| 18 |
|
| 19 |
public static function filter_allowed_html( $allowed_html ) { |
| 20 |
$allowed_html['a']['target'] = []; |
| 21 |
return $allowed_html; |
| 22 |
} |
| 23 |
|
| 24 |
} |
| 25 |
|