PluginProbe
Posts Table with Search & Sort / 1.3.7
Posts Table with Search & Sort v1.3.7
1.4.13 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2 1.3 1.3.1 1.3.1-v2 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 All 40 releases
posts-data-table / lib / Admin / Notices.php

Notices.php in Posts Table with Search & Sort 1.3.7, at lib/Admin/Notices.php

25 lines 571 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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