Info
- 2 posts
- 1 voice
- Started 3 years ago by yutt
- Latest reply from yutt
- This topic is not resolved
Adding to topic form
-
- Posted 3 years ago #
Several plugins add options to the topic submission and edit forms (Support Forum, bbcode-buttons, etc).
I know how to add to the end of those forms with add_action('hook','function'), but I don't understand how they add their fields to specific areas of the form, such as below the Topic title field, above the post text field, above the tag field, etc.
Is there a proper way to do this so it remains theme agnostic?
-
- Posted 3 years ago #
Since no one seems to be able to answer my question, I'll post what I've discovered on my own, in case it could help someone who stumbles across this topic.
Digging through "..\bb-includes\functions.bb-template.php" there seem to only be a few hooks available in this area.
Post Form:
pre_post_form, post_form, post_post_formEdit Form:
pre_edit_form, edit_form, post_edit_formSome themes appear to have their own hooks. In kakumei I found:
post_form_pre_post, edit_form_pre_postUnfortunately there doesn't seem to be too much room to insert into the form in a theme-agnostic way. In-order to have things look right, you'll probably have to modify the theme.
-
You must log in to post.