-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parent menu slug does not work in $config #672
Comments
Hi @rinkuyadav999, to help you I need a little more information. Could you answer the following questions ?
|
Hi @jrfnl
Everything works fine, just i want to display link of 'install plugin' under plugins.php instead themes.php |
Hi @rinkuyadav999, Did you choose "WordPress.org" or "ThemeForest" as the publication channel for the theme when you downloaded ? If so, that's the reason. The theme review rules for themes which are to be published in the WP theme repository (same goes for ThemeForest) do not allow for themes to add an admin page anywhere but under the "Themes" menu, so that functionality gets disabled for the WP version generated by the Custom TGMPA Generator. For more information about the different versions generated by the Custom TGMPA Generator, see #519. Does that solve your issue ? |
Yes it is TRT cap :( |
Hi
I have downloaded class-tgm-plugin-activation for theme and it adds link under themes.php perfectly using config:
$config = array( 'id' => 'mytheme', 'default_path' => '', 'menu' => 'mytheme-install-plugins', 'has_notices' => true, 'dismissable' => true, 'dismiss_msg' => '', 'is_automatic' => false, 'message' => '', );
But i want to display link under plugins.php instead themes.php so i added
'parent_slug' => 'plugins.php',
'capability' => 'manage_options'
But it keeps link under themes.php. Expecting sub menu of plugins.php
The text was updated successfully, but these errors were encountered: