Plugin currupts a tab on my admin panel
Author | Posts |
---|---|
June 10, 2013 at 11:57 am 4755 | |
Mahi | Whenever I activate this plugin it deletes one of my other admin tabs. Wierd! Any ideas on how to solve this? |
June 10, 2013 at 12:09 pm 4756 | |
gd0g | Here is before and after to visually demonstrate: Before After I had actually noticed it on my previous theme but what it did was delete the WPMU tab which didn’t worry me but now it deletes Messages tab which is an important part of my new theme. Your advice would be appreciated. I have isolated it to your plugin. |
June 10, 2013 at 5:50 pm 4762 | |
Mahi | Look around line 189 in cpm.php. $hook = add_menu_page( __( ‘Project Manager’, ‘cpm’ ), __( ‘Project Manager’, ‘cpm’ ), $capability, ‘cpm_projects’, array($this, ‘admin_page_handler’), ”, 3 ); “3” is the menu position #. Change it to something else . |
June 11, 2013 at 12:41 am 4767 | |
gd0g | Thanks for prompt reply. Unfortunately whilst this moves the tab it does not fix the problem. Any other ideas? |
June 11, 2013 at 7:54 am 4782 | |
Tareq Hasan | Thats the only option that might create problem because it was assigned a static point in the menu side bar. Other than that, I’ve no idea why that problem would arise. |
June 11, 2013 at 8:36 am 4786 | |
gd0g | How can I update the code so it doesn’t set a specific position at all? Worth a try! |
June 11, 2013 at 7:18 pm 4800 | |
Tareq Hasan | You can just remove the number and it should be placed at the bottom. |
June 11, 2013 at 11:10 pm 4809 | |
gd0g | No luck with that either. FYI this is the response i got from the theme developer: Hi Gavin, From your description of the issue it seems that the plugin you are using is conflicting with the theme Message post type. The Messages menu item is simply a custom post type that is added and uses WordPress coding standards to add this post type so if the plugin you are using has been coded to WordPress standards it should not conflict with our theme. The only way to resolve this issue is to either resolve this issues with this 3rd party plugin or find another plugin that does not conflict with the messages post type I’m afraid as I annot resolve issue slike this with 3rd party plugins under our support policy regrattably. Kind Regards Stuart – WooNinja ————————————————————————— |
June 12, 2013 at 12:56 am 4810 | |
Mahi | As Tareq mentioned above if you remove the number it should be visible at the very end of admin left side menu. I can assure the plugin has been coded by following WordPress Standard and being using over 2K+ sites actively ! please mention “ref by: Mahi” as subject. Thanks |