Different Post Types – All With post.php permalink
-
I’m trying to figure out the best way to handle this:
WooCommerce orders (in admin view) have a post-type permalink that looks like this:
https://domain.com/wp-admin/post.php?post=982972&action=edit
WordPress posts have a similar type of permalink, as do pages, and custom post types:
Post: https://domain.com/wp-admin/post.php?post=963804&action=edit
Page: https://domain.com/wp-admin/post.php?post=76&action=editThe plugins that I need to disable for a WooCommerce order (in admin view) are not the same plugins that I need to disable for the other types of posts, so ignoring URL arguments isn’t an option; and I have thousands of WooCommerce orders so creating a filter for each one (since I can’t use a wildcard for the post number) isn’t a reasonable option either.
I tried creating a filter for the shop-order custom post type but none of the plugins I disabled actually ended up being disabled when I viewed orders from the admin dashboard.
Has anyone figured out a solution to this? I’ve been struggling with it for a very long time and so far the only thing that works is to create a plugin filter for a single order (like the one listed above) and then go back and change the order number in the filter permalink settings whenever I want to edit another order. Most inefficient.
Any suggestions?
- The topic ‘Different Post Types – All With post.php permalink’ is closed to new replies.