function init()
 {
     add_filter('custom_menu_order', array($this, 'enable_custom_menu_order'));
     add_filter('menu_order', array($this, 'custom_menu_order'));
     global $wp_version;
     if (version_compare($wp_version, '3.3', '>=')) {
         add_action('admin_head-edit.php', array($this, 'admin_add_help'));
         add_action('admin_head-post.php', array($this, 'admin_add_help'));
         add_action('admin_head-post-new.php', array($this, 'admin_add_help'));
     }
     add_action('admin_head-post.php', array($this, 'admin_add_errors'));
     add_action('admin_head-post-new.php', array($this, 'admin_add_errors'));
     parent::init();
     add_action('wp_ajax_wpv_get_types_field_name', array($this, 'wpv_ajax_wpv_get_types_field_name'));
     add_action('wp_ajax_wpv_get_taxonomy_name', array($this, 'wpv_ajax_wpv_get_taxonomy_name'));
     if (is_admin()) {
         add_action('admin_print_scripts', array($this, 'add_views_settings_js'));
         add_action('admin_print_scripts', array($this, 'add_views_syntax_highlighting_js'));
     }
     /* Add hooks for Module Manager Integration */
     if (defined('MODMAN_PLUGIN_NAME')) {
         add_filter('wpmodules_register_sections', array($this, 'register_modules_sections'), 20, 1);
         add_filter('wpmodules_register_items_' . _VIEWS_MODULE_MANAGER_KEY_, array($this, 'register_modules_views_items'), 30, 1);
         add_filter('wpmodules_export_items_' . _VIEWS_MODULE_MANAGER_KEY_, array($this, 'export_modules_views_items'), 10, 2);
         add_filter('wpmodules_import_items_' . _VIEWS_MODULE_MANAGER_KEY_, array($this, 'import_modules_views_items'), 10, 3);
         add_filter('wpmodules_items_check_' . _VIEWS_MODULE_MANAGER_KEY_, array($this, 'check_modules_views_items'), 10, 1);
         add_filter('wpmodules_register_items_' . _VIEW_TEMPLATES_MODULE_MANAGER_KEY_, array($this, 'register_modules_view_templates_items'), 20, 1);
         add_filter('wpmodules_export_items_' . _VIEW_TEMPLATES_MODULE_MANAGER_KEY_, array($this, 'export_modules_view_templates_items'), 10, 2);
         add_filter('wpmodules_import_items_' . _VIEW_TEMPLATES_MODULE_MANAGER_KEY_, array($this, 'import_modules_view_templates_items'), 10, 3);
         add_filter('wpmodules_items_check_' . _VIEW_TEMPLATES_MODULE_MANAGER_KEY_, array($this, 'check_modules_view_templates_items'), 10, 1);
     }
 }
 function init()
 {
     add_filter('custom_menu_order', array($this, 'enable_custom_menu_order'));
     add_filter('menu_order', array($this, 'custom_menu_order'));
     // @todo I really feel this is not used anymore
     global $wp_version;
     if (version_compare($wp_version, '3.3', '>=')) {
         add_action('admin_head-edit.php', array($this, 'admin_add_help'));
         // TODO review if this is needed here anymore, maybe for Content Templates
         add_action('admin_head-post.php', array($this, 'admin_add_help'));
         // TODO review if this is needed here anymore, maybe for Content Templates
         add_action('admin_head-post-new.php', array($this, 'admin_add_help'));
         // TODO review if this is needed here anymore, maybe for Content Templates
         add_action('admin_head', array($this, 'admin_add_help'));
         // TODO check in what page we are inside that method
     }
     add_action('admin_head-post.php', array($this, 'admin_add_errors'));
     // TODO review if this is needed here anymore, maybe for Content Templates
     add_action('admin_head-post-new.php', array($this, 'admin_add_errors'));
     // TODO review if this is needed here anymore, maybe for Content Templates
     parent::init();
     add_action('wp_ajax_wpv_get_types_field_name', array($this, 'wpv_ajax_wpv_get_types_field_name'));
     // Maybe deprecated
     add_action('wp_ajax_wpv_get_taxonomy_name', array($this, 'wpv_ajax_wpv_get_taxonomy_name'));
     // Maybe deprecated
     // Actions to display buttons in edit screen textareas
     add_action('wpv_views_fields_button', array($this, 'add_views_fields_button'));
     add_action('wpv_cred_forms_button', array($this, 'add_cred_forms_button'));
     if (is_admin()) {
         add_action('admin_enqueue_scripts', array($this, 'wpv_admin_enqueue_scripts'));
         $this->view_parametric_create();
     }
     /**
      * Add hooks for backend Module Manager Integration
      */
     if (defined('MODMAN_PLUGIN_NAME')) {
         // Keep the part about registering elements in the plugin version
         add_filter('wpmodules_register_items_' . _VIEWS_MODULE_MANAGER_KEY_, array($this, 'register_modules_views_items'), 30, 1);
         add_filter('wpmodules_register_items_' . _VIEW_TEMPLATES_MODULE_MANAGER_KEY_, array($this, 'register_modules_view_templates_items'), 20, 1);
         // Add the section to Views and WPA edit pages
         add_action('view-editor-section-extra', array($this, 'add_view_module_manager_section'), 20, 2);
     }
     /**
      * add some debug information
      */
     add_filter('icl_get_extra_debug_info', array($this, 'add_config_to_toolset_extra_debug'));
 }
 function init()
 {
     add_filter('custom_menu_order', array($this, 'enable_custom_menu_order'));
     add_filter('menu_order', array($this, 'custom_menu_order'));
     global $wp_version;
     if (version_compare($wp_version, '3.3', '>=')) {
         add_action('admin_head-edit.php', array($this, 'admin_add_help'));
         add_action('admin_head-post.php', array($this, 'admin_add_help'));
         add_action('admin_head-post-new.php', array($this, 'admin_add_help'));
     }
     parent::init();
     add_action('wp_ajax_wpv_get_types_field_name', array($this, 'wpv_ajax_wpv_get_types_field_name'));
     add_action('wp_ajax_wpv_get_taxonomy_name', array($this, 'wpv_ajax_wpv_get_taxonomy_name'));
     if (is_admin()) {
         add_action('admin_print_scripts', array($this, 'add_views_settings_js'));
     }
 }