@@ -6,21 +6,27 @@ class MainWPCheckPluginVulnerability extends MainWPCheckPluginVulnerabilityActiv
66 // add text domain
77 // --------------------
88 public function __construct () {
9+
910 add_action ( 'init ' , array (&$ this , 'hhdev_mwpcpv_load_textdomain ' ) );
10- add_filter ('mainwp-getsubpages-sites ' , array (&$ this , 'hhdev_mwpcpv_managesites_subpage ' ), 10 , 1 );
11+ add_filter ('mainwp_getsubpages_sites ' , array (&$ this , 'hhdev_mwpcpv_managesites_subpage ' ), 10 , 1 );
12+
13+ /* if ( isset( $_GET['page'] ) && ( 'ManageSiteshhdev-mwp-check-plugins-vulnerability' == $_GET['page'] ) ) {
14+ require_once 'includes/functions.php';
15+ add_action( 'admin_print_footer_scripts', 'mainwp_creport_admin_print_footer_scripts' );
16+ }*/
1117 }
1218
1319 public function hhdev_mwpcpv_load_textdomain () {
14- load_plugin_textdomain ( 'hhdev-mwpcpv ' , false , dirname ( plugin_basename ( __FILE__ ) ) . '/languages ' );
20+ load_plugin_textdomain ( 'hhdev-mwpcpv ' , false , dirname ( plugin_basename ( __FILE__ ) ) . '/languages/ ' );
1521 }
1622
1723 public function hhdev_mwpcpv_managesites_subpage ( $ subPage ) {
1824
1925 $ subPage [] = array (
2026 'title ' => 'Check Plugins Vulnerability ' ,
21- 'slug ' => ' MainWPCheckPluginVulnerability ' ,
22- 'sitetab ' => true ,
23- 'menu_hidden ' => false ,
27+ 'slug ' => & $ this -> plugin_handle ,
28+ 'sitetab ' => true , // show/hide tab menu - not working correct, true is hidden
29+ 'menu_hidden ' => true ,
2430 'callback ' => array ( 'MainWPCheckPluginVulnerability ' , 'hhdev_mwpcpv_render_page ' ),
2531 );
2632
0 commit comments