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 do_shortcode

Folowing on Milo’s comment, do_shortcode expects the parameter to be exactly as if it is a shortcode inserted as part of the content, therefor your attempt to quote avatar_upload is just wrong and it should be do_shortcode(‘[avatar_upload]’); In addition it is probably better to just avoid using do_shortcode and call the relevant official API, if … 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

Overriding post’s font-family

You could run a regex. Since they’re continuing this behavior, you will probably want to create a custom plugin and set up a cron job to trigger it periodically so it will continue stripping all inline styles. Your plugin will need to query all posts. From there, in a loop that checks each post’s content, … Read more