PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / trunk
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel vtrunk
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / src / WordPress / AdminNotice.php
wp-all-export / src / WordPress Last commit date
AdminDismissibleNotice.php 3 weeks ago AdminErrorNotice.php 5 years ago AdminNotice.php 3 weeks ago Filters.php 9 years ago OrderQuery.php 3 weeks ago SitewideAdminDismissibleNotice.php 3 weeks ago
AdminNotice.php
34 lines
1 <?php
2
3
4 namespace Wpae\WordPress;
5
6 defined( 'ABSPATH' ) || exit;
7
8
9
10 abstract class AdminNotice
11 {
12 protected $message;
13
14 public function __construct($message)
15 {
16 $this->message = $message;
17 }
18
19 public function showNotice()
20 {
21 ?>
22 <div class="<?php echo esc_attr($this->getType());?>"><p>
23 <?php echo wp_kses_post($this->message); ?>
24 </p></div>
25 <?php
26 }
27
28 public function render()
29 {
30 add_action('admin_notices', array($this, 'showNotice'));
31 }
32
33 abstract function getType();
34 }