How to make multiple admin pages for one plugin?

Using add_submenu_page function WordPress you can add multiple pages/menu In order to add a new top-level menu to WordPress administration dashboard, You can use add_menu_page() function. This function has the following syntax. //add plugin menu add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position); As you can see, The function accepts the following parameters. page_title: The page … Read more

Using and saving custom dropdown boxes on user profiles

You are storing the data in the $selected value, while using $topselected in the conditionals to check which value is selected. Either change your value like this: $topselected= get_the_author_meta( ‘user_top’, $user->ID ); OR change your inline conditionals to this: <option value=”MPF Pune West:” <?php echo ($selected== “MPF Pune West:”)? ‘selected=”selected”‘ : ” ?>>MPF Pune West:</option> … Read more

Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?

Yes, Symfony components are licensed under MIT these days. They are compatible with GPL, which is a requirement of the official WP repository. Do note that as number of plugins using common PHP components is increasing, so does possibility of version and other conflicts between them. Since WP lacks dependency management, at some point you … Read more