So basically in The Wordpress Admin when you are editing a "post" you have a url slug like...
I would like to know, is there a filter or way that I can add the post_type query arg to this url? Which would result in something like...
I would like this to run for all post types (page, post, product, ...)
Why: I have a plugin that disables plugins from loading based on a string in the url.
My Goal: is to reveal the
post_type=value in the url when editing a post, so that I can disable plugins from loading when editing post types that those plugins do not need to load on.
Example: when editing a portfolio post type, I do not need Woocommerce or its addons to load. So I would like to disable them when editing portfolio posts.
This is entirely for performance reasons of a potential mu-site I might offer publicly.