TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 430 forks source link

add_theme_page() required on line 731 #602

Closed flovro closed 8 years ago

flovro commented 8 years ago

Hello, I'm using the latest TGMPA Version and on theme check appearing the next issue:

REQUIRED: wp-content/themes/theme-name/inc/plugin/class-tgm-plugin-activation.php. Themes should use add_theme_page() for adding admin pages.

Line 731: $this->page_hook = call_user_func( 'add_submenu_page', $args['parent_slug'], $args['page_title'], $args['menu_t

What shall I do? Thanks,

jrfnl commented 8 years ago

Hope the fact that you closed the issue means you found the Custom TGMPA Generator... ? That will auto-fix this for you if you select "publication on wordpress.org".

heshaShawky commented 7 years ago

I have used the generator for both wordpress.org and ThemeForest and the same problem every time

Line 731: $this->page_hook = call_user_func( 'add_submenu_page', $args['parent_slug'], $args['page_title'], $args['menu_t

I hope there a solution?

Regards.

heshaShawky commented 7 years ago

I found the problem it's the generator doesn't work with chrome and IDM so I just re-download the files again using edge browser and no error's

GaryJones commented 7 years ago

IDM?

heshaShawky commented 7 years ago

( Internet download manager ) even the site pop up an ajax error I didn't notice it at the beginning!

the error: Failed to retrieve TGMPA: Error: Ajax error for ../releases/TGM-Plugin-Activation-2.6.1.zip : 204 Intercepted by the IDM Advanced Integration

noralam commented 6 years ago

How can I download TGM without IDM?

jrfnl commented 6 years ago

@noralam http://tgmpluginactivation.com/download/