PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.3.7
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.3.7
7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / lib / plugin-notice / README.md
wordpress-popup / lib / plugin-notice Last commit date
assets 6 years ago README.md 6 years ago notice.php 6 years ago
README.md
62 lines
1 # Usage Examples
2 ## Minimum requirement
3 ```
4 <?php
5 require_once 'recommended-plugins-notice/notice.php';
6
7 do_action(
8 'wpmudev-recommended-plugins-register-notice',
9 plugin_basename(__FILE__), // Plugin basename
10 'My Plugin Name', // Plugin Name
11 array(
12 'top_level_page_screen_id' // Screen IDs
13 ),
14 );
15 ```
16
17 # Development Mode
18 ## Always ON
19 This code below will always show the notice on every page.
20 ```
21 <?php
22 require_once 'recommended-plugins-notice/notice.php';
23
24 add_filter( 'wpmudev-recommended-plugins-is-displayable', '__return_true' );
25 add_filter(
26 'wpmudev-recommended-plugin-active-registered',
27 function () {
28 $active = new WPMUDEV_Recommended_Plugins_Notice_Registered_Plugin( 'basename' );
29 $active->selector = array( 'after', '.sui-wrap .sui-header' );
30 $active->name = 'Sample';
31
32 return $active;
33 }
34 );
35 ```
36 ## Custom time trigger
37 Default of notice to be displayed in plugin page(s) is **14** days after its registered.
38 You can decrease or even increase this because why not.
39 ```
40 <?php
41 add_filter(
42 'wpmudev-recommended-plugins-notice-display-seconds-after-registered',
43 function ( $time_trigger ) {
44 // 1 minute trigger
45 $time_trigger = 1 * MINUTE_IN_SECONDS;
46
47 return $time_trigger;
48 }
49 );
50 ```
51 ## Un-dismiss
52 Accidentally or purposed-ly dismiss the notice for whatever reason ? this below code can undo that.
53 ```
54 <?php
55 add_action(
56 'wpmudev-recommended-plugins-before-display',
57 function () {
58 WPMUDEV_Recommended_Plugins_Notice::get_instance()->un_dismiss();
59 }
60 );
61 ```
62