PluginProbe
Adminimize / 1.11.1
Adminimize v1.11.1
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.1, at inc-setup/admin-footer.php

36 lines 815 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 if ( ! function_exists( 'add_action' ) ) {
8 echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
9 exit;
10 }
11
12 if ( ! is_admin() ) {
13 return;
14 }
15
16 // If is AJAX Call.
17 if ( defined('DOING_AJAX') && DOING_AJAX ) {
18 return;
19 }
20
21 // on init of WordPress
22 add_action( 'admin_init', '_mw_adminimize_init_admin_footer' );
23 function _mw_adminimize_init_admin_footer() {
24
25 if ( (int) _mw_adminimize_get_option_value( '_mw_adminimize_advice' ) === 1 ) {
26 add_action( 'in_admin_footer', '_mw_adminimize_add_admin_footer' );
27 }
28 }
29
30 /**
31 * Print hint in wp-footer
32 */
33 function _mw_adminimize_add_admin_footer() {
34
35 echo _mw_adminimize_get_option_value( '_mw_adminimize_advice_txt' ) . '<br />';
36 }