PluginProbe
Adminimize / 1.11.3
Adminimize v1.11.3
1.11.14 1.11.13 1.11.1 1.11.10 1.11.11 1.11.12 1.11.2 1.11.3 1.11.4 1.11.5 1.11.6 1.11.7 1.11.8 1.11.9 1.3 1.4.7 1.6 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.19 All 53 releases
adminimize / inc-setup / admin-footer.php

admin-footer.php in Adminimize 1.11.3, at inc-setup/admin-footer.php

37 lines 816 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Adminimize
4 * @subpackage Add Hint in Admin Footer
5 * @author Frank Bültge
6 */
7
8 if ( ! function_exists( 'add_action' ) ) {
9 echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
10 exit;
11 }
12
13 if ( ! is_admin() ) {
14 return;
15 }
16
17 // If is AJAX Call.
18 if ( defined('DOING_AJAX') && DOING_AJAX ) {
19 return;
20 }
21
22 // on init of WordPress
23 add_action( 'admin_init', '_mw_adminimize_init_admin_footer' );
24 function _mw_adminimize_init_admin_footer() {
25
26 if ( (int) _mw_adminimize_get_option_value( '_mw_adminimize_advice' ) === 1 ) {
27 add_action( 'in_admin_footer', '_mw_adminimize_add_admin_footer' );
28 }
29 }
30
31 /**
32 * Print hint in wp-footer
33 */
34 function _mw_adminimize_add_admin_footer() {
35
36 echo _mw_adminimize_get_option_value( '_mw_adminimize_advice_txt' ) . '<br />';
37 }