wordpress plugins
wordpress plugins
have you noticed when you add a plugin to your wordpress blog in some cases it shows up as it's own folder and in other cases it is listed under "Settings" why is that.
- fantastico
- Posts: 536
- Joined: March 5th, 2018, 6:24 pm
Different code. Like, adding in settings would be add_options_page(), and making it it's own menu would use add_menu_page() along with more code and add_submenu_page() to make more option pages using the same slug as set in add_menu_page.
I think she is asking why they use the 2 different codes, ( I think that is her question).
From Malta with love and sunshine
I'm not positive, but I think add_options_page() (the one where the options are under settings) came first, then they added add_menu_page() to make top level menu items in the dashboard, then they just kept them both.
-
- Posts: 487
- Joined: March 23rd, 2018, 10:13 am
-
- Posts: 568
- Joined: June 14th, 2018, 6:51 pm
- Location: LA
WP can always tell developers to stick to one format, see if they listen to them.
Not like the user has any say in this. I like it when it's tucked away in the settings or tools folder unless the plugin menu contains multiple pages. I hate having things cluttered up with unnecessary menus, icons and BS.
Same, most of the time after I set up a plugin, I never have to go back to settings for anything, so tucked away is nice.
Also, a lot of my blogs use custom post types, which have their own menu, and that can get cluttered when other plugin settings are mixed in.
If the user really wants to, though, they could move where the plugin menus is, or even make new settings lol
-
- Posts: 794
- Joined: May 4th, 2018, 6:51 pm
- Location: LosAngeles
My choice is they are all in "Settings" out of the way but it is not that big a deal.
- pussyhunter
- Posts: 503
- Joined: July 13th, 2018, 3:40 am
from 5 to 12 depends on the bogpussyhunter wrote: ↑March 24th, 2021, 9:42 amOn average how many plugins do you peeps have per blog?
Delete any unused plugins they an be hackedpussyhunter wrote: ↑March 24th, 2021, 9:42 amOn average how many plugins do you peeps have per blog?