Please move the edit_category_form hook
-
Hello.
I have been working alot with two plugins that relate to and affect categories in WordPress. However these plugins did not play nice with eachother at first and I decided to find out why.
After alot of code reading I found that the reason they weren’t working well together is because the edit_category_form-hook occurs AFTER the submit button for the edit/add category-forms and they both want to be BEFORE the submit button of course.
I’ve hacked the plugins so that they work together now but I still think the placement of the hook is wrong. Anyone who wants to add a form field to the category form will most likely want to add it before the submit button, not after. Having to resort to either javascript or other hacks just to get your form field in the right place isn’t very good.
All that needs to be done is to move the hook to before the table is closed in edit-category-form.php and moving it up above the p-tag with the class submit in categories.php.
If there’s a special reason that the hook must be placed after the submit button there should be another hook for those who want to add form fields to the category forms.
Kindly, Marcus.
- The topic ‘Please move the edit_category_form hook’ is closed to new replies.