Feature request: append post type to edit links
-
Hi!
It’d be great to have the post type appended as a parameter to the end of the edit links in the tree view. This can be used together with plugins like Freesoul Deactivate Plugins to speed the loading of editing certain types of posts by suppressing which plugins load based on that post type parameter. Maybe something like the following in the functions.php file for CMS Tree Page View:
$postType = get_post_type($onePage->ID); $editLink = get_edit_post_link($onePage->ID, 'notDisplay') . '&post_type=' . $postType;
The result would be:
https://mydomain.com/wp-admin/post.php?post=123&action=edit&post_type=page
Thanks for considering this addition ??
- The topic ‘Feature request: append post type to edit links’ is closed to new replies.