That’s just a quick feedback: Use a shortcode to insert your form into content. Those are quite flexible. And for the processed form’s need to have another URL you can add a rewrite endpoint like /form/processed/ you can check after submission then. That’s probably more modular.
In the end that prevents you to deal with the the_content filter as you can deal with anything within the shortcode callback.
It’s a rough suggestion only, but probably does the job for you.
Related Posts:
- Can I use a hook other than ‘init’ to handle form submissions?
- Plugin Form Submission Best Practice
- Add a new tab to WordPress Plugin install Listing
- Changing Plugin Load Order
- Admin settings update updating every time home page is hit?
- Global Objects and Public Methods
- What is the recommended way to create plugin administration forms?
- How should you hook a session_start() when authoring a plugin?
- Init action hook running late after PayPal’s return url?
- How do you use the plugin boilerplate loader class to hook actions and filters?
- How Do I Load My Action Earlier Enough?
- Does WP fire delete_post when trashed posts are automatically deleted?
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- Using AJAX in a plugin to submit form – REALLY confused
- How to add a link to WordPress Plugin install Listing
- I can’t find where a hook is being defined in a plugin – Easy Digital Downloads
- Call activation hook multiple times
- Check spam in custom form – akismet
- Two-step login process – Is it possible?
- How can I hook into existing WordPress Bulk actions?
- Hook for post permalink update
- Get returned variable from a function to add_shortcode function
- Earliest WP Hook to Safely and Reliably Redirect
- Define a function outside a class and call the function using action or filter hook
- Create a plugin to change the action to which a function is hooked
- Can I differentiate between “Delete Post Permanently” and “Empty Trash” and do something for each accordingly?
- Synchronize Custom post type tags to WordPress default posts tags
- comment_email hook doesn’t seem to work for comment editor field
- Is there a better way to implement responsive images than what WordPress uses by default?
- unable to stop loop when using wp_insert_post with publish_post hook
- Add tab to profile.php wordpress plugin development
- Plugin options page – form with two different submit buttons
- WordPress Ajax callback function from plugin – OOP
- How do I change the initial quantity of a product in woocommerce?
- Where and how does WordPress store and use its plugin and hook information?
- How to sanitize user input?
- Which are the hooks run before/after when a category’s deletion?
- edit_{$taxonomy} | Hook
- WordPress after content Hook & external template part
- best practice for query string values – get_query_var always empty for my value supplied in query string
- Modifying meta tags after doing ajax call in plugin
- Where to add hooks in a class
- How to use output buffering in WordPress hooked functions?
- Adding option to Gallery shortcode
- do_action and add_action on two different installed plugins won’t work
- I have 2 plugins using the same wp_login action hook and one is not working
- Add a new confirmation page before saving
- How dynamic action login_form_{action} is working
- What happens when two or more plugins use the same hook?
- How to get all queries’s results after they have executed?
- flush rewrite rules after plugin update?
- Add child pages to submenu automatically
- After plugin activation hook
- Odd map_meta_cap $args on post edit — sometimes integer, sometimes string
- How can I create a custom plugin that allows anonymous users to signup without registering?
- hook filter after the_content on a specific page
- The Correct Way to Use Nonce Field without Settings API
- Call to undefined function is_home() or any conditional tags
- Associate multiple email addresses with the same user account, so they can log in with either
- Run command “composer install” when activating wordpress plugin
- Catching Form Submission in WordPress Admin Panel
- Custom filter not working
- Configure WordPress to Generate Scheme-less Relative URLs
- A function that will remove HTML and tags from a string?
- Ajax +wordpress onClick link redirect to new page and create html content
- How to replace settings in WordPress plugin from a theme
- Lead form that submits to 2 external APIs
- WordPress: redirecting to the form page after form submission to admin-post.php
- Creating posts with links from a txt file
- Action / Hook when a new plugin is added
- apply_filters() and call_user_func() to define and call a function outside a class
- Getting Post ID at “stylesheet” and “template” hooks
- How to create a custom post-new.php page for plugin , no wp menu
- Woocommerce get_term_by() in transition_post_status hook doesn’t works
- Is there any way to get post meta from publish_post hook?
- Problem in plugin debuging in wordpress
- OOP development and hooks
- Plugin Development – Call to undefined function comment_exists()
- Add_action not calling callback function
- Prevent plugin activation and add admin notice
- form does not generate $_POST request
- Function not working on any file other than the main plugin file
- Does WordPress have something like timer hook?
- Multi hook deploiement
- Form and database, plugin development
- Template file structure , wordpress hook for altering the template
- woocommerce single product page hook not working
- How can I set a dynamic value for post_updated_messages based on return value of post_updated?
- wp_mail links are dead
- What is the use of wp_schedule_event hook?
- Multi-part form and wp_redirect()
- How do I replace title with my plugin?
- Looking for Hook that is fired after a plugin or wp upgrade is installed/updated
- Submitting a plugin form to database in admin page
- Woocommerce: block user removing cart item
- How can I get a plugin to hook ‘dbdelta_queries’ — a filter used during version update?
- Send retrieve password notification email with custom HTML email template
- Execute callback after REST API request completes + Response is sent
- How to customize password reset message page on success if no error in password reset
- how to execute a function only when i send an order to trash [closed]