Changeset 2189952
- Timestamp:
- 11/11/2019 05:31:18 PM (6 years ago)
- File:
-
- 1 edited
-
webphone/trunk/webphone.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
webphone/trunk/webphone.php
r2189900 r2189952 88 88 $plugin->run(); 89 89 90 global $pagenow; 91 if ($pagenow == 'admin.php' && stristr($_GET['page'], $plugin->get_plugin_name()) !== false) { 92 // Remove 'thank you for creating with wordpress' and wordpress version in admin footer plugin pages only 93 add_action( 'admin_init', 'WPHD_edit_footer' ); 94 add_action( 'admin_init', 'WPHD_edit_version_footer' ); 95 } 96 90 97 } 91 98 WPHD_run_webphone_dynamics(); 92 99 100 // Remove 'thank you for creating with wordpress' and wordpress version in admin footer plugin pages 101 function WPHD_edit_text($content) { 102 return ''; 103 } 104 function WPHD_edit_footer() { 105 add_filter( 'admin_footer_text', 'wpse_edit_text', 10 ); 106 } 107 function WPHD_edit_version_footer() { 108 add_filter( 'update_footer', 'WPHD_edit_text', 10 ); 109 }
Note: See TracChangeset
for help on using the changeset viewer.