simple with jQuery:
//first make sure you have jQuery on that page
add_action('wp_enqueue_scripts','make_sure_i_have_jquery');
function make_sure_i_have_jquery(){
if (!is_admin())
wp_enqueue_script( 'jquery' );
}
//then just change the url to you own
add_action('wp_footer','change_comment_form');
function make_sure_i_have_jquery(){
if (!is_admin() && (is_page() || is_single()))
echo '<script> $("#commentform").attr("action", "http://yourUrl.com"); </script>';
}
just paste this in your theme’s functions.php or the plugin your are develop and change http://yourUrl.com
to the url you want
Related Posts:
- How do we remove the H3 tag for the reply-title I.D
- Success message in comment form
- Using filter to add additional fields to comment_form()
- An action hook where a comment meta is updated
- How to add a div on comment fields / edited
- On WordPress 4.4, how to get the post id using the comment_post hook
- How to modify comments form using comment_form()?
- Comment form problem with comment_author_url and HTML5 input placeholders
- WP 4.4.1 allow empty comments via add_action ‘pre_comment_on_post’
- stackexchange-like submit comment window
- After Submitting Comment Form Shows an Empy Page in WordPress
- Spammers attacking my WordPress Site – Removing URL field from core? [closed]
- Alternative to the filter comment_reply_link
- How to direct user after comment save
- Disable only the comment form/box itself?
- How to hide wordpress post comment form for specific role
- Copy and Paste Password for Comments
- stumped on add_action hook to delete_comment – any ideas?
- How to Trigger comment_form_after action if comment_form() not used
- How t Remove Labels from comment Box
- comment form code redirect to wp_comments_post.php with blank page
- Need to output comment_form() function inside a foreach loop
- How add custom text under comment form
- Delete comments function
- Image Upload Form is Disabling Comment Addition
- Comment submission & navigation redirects to default language
- Reply to a specific comment?
- How to hide the login / profile urls on top of comment box for a post
- Resetting comment count
- Redirect user to a custom url after submitting the comment
- One comment per user per post but be able to reply to existing comments
- What’s the easiest way to close comments on media/attachments?
- How to add editor-style.css styling to wp_editor on front end for comments
- Using Disqus, how to stop storing comments in wp database?
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- Custom Field Added In Comment Form Not Showing In Edit
- Get threaded comments number
- SQL query to delete comments older than 90 days?
- How to refresh the page when an admin trashes a comment from Comments in the admin site?
- Remove “Comment” column in all post-types
- How stop the process of submitting a comment if a field is empty?
- Let user edit his own comment
- Get the number of comments awaiting moderation
- What does the “$depth” parameter in the Walker_Comment stand for?
- Send Notifications to All Admins
- Comment pagination – How to show determined number of comments on the first page?
- How to allow a particular role like Contributor be able to only view pending comments and approve them?
- Disable comments
- Sort comments by karma
- Bots posting comments on pages
- default callback function in wp_list_comments
- Why are authors allowed to approve comments on their posts? How to revoke privilege?
- Add classname comment template from functions.php
- Comments deactivated
- List user comments in author page
- Validate form in functions.php, send errors back to template
- How to add a strip of visual editor on top of comments textarea
- Threaded comments not working
- Customizing comments pagination for bootstrap
- woocommerce allow users to select or use avatar
- Error While Sending Comment
- comment_reply_link not work with me
- have_comments() does not work
- How to allow duplicate comments AND without comment text
- Remove the deleted user comment
- Only allow the post author and admin to comment on a post
- How come pending comments are appearing in admin?
- Generate Sub-Comments with WP-CLI [closed]
- Repositioning ‘Reply’ Link in Comments
- Add an attachment feature to comments
- Counting Comments as Singular and Plural in comments.php Template
- How to display custom comment fields onto any page
- Make every comment go to the spam folder
- How to get Post title by locale with Qtranslate-X
- Admin Dashboard – Recent Comments source
- After submit comments select the current tab
- count number of all comments by a user on different (non-repeated) posts
- How to use filter on comment submission/insert
- Custom comment types. Are they a possibility?
- Embedding local video in WordPress comments
- Is there a way to link to the BOTTOM of the comments on a wordpress page?
- Difference between date and date_gmt
- Author name length character limit?
- Migrate comments and likes wordpress.com to selfhosted site
- How to enable truly anonymous posting in bbPress forums? [closed]
- Admin – Dashboard – Unset recent comments
- How does WordPress generate a comment website preview?
- Front End User(bloger) turn on and off his comments
- Does not show comment list
- Change comment author after new comment posted
- Show ‘add comment’ link for status updates in Twenty Thirteen
- Pull & display new comments without refreshing the page
- How to display comments by logged in user and responses?
- Identify and display the fact that user is admin next to username in comment section
- Email from new comments
- GET form action. Redirect to self
- Clicking Comment “Reply” Button only replies to first comment
- How to add a comment box on wordpress page? in the discussion section of page, allow comments is checked
- Are There Comment Text Revisions
- How can I filter the user avatar displayed in comments? – get_avatar_url filter works everywhere but not in comments