I think you inject some code to display your custom button.
You can try to add the save post action in your code:
do_action('save_post');
And then add redirect code, be carefull with the Infinite loop.
Related Posts:
- Check for update vs new post on save_post action
- How to avoid infinite loop in save_post callback
- $update is always true in save_post
- Action hook ‘save_post’ triggered when deleting posts
- get post meta before it is updated (during SAVE_POST)
- save_post action firing before I publish / save the post
- save_post action only when creating a new post
- Check if value has changed on save_post
- Minimum Word Count Before A Post Can Be Made Pending Review
- update_post_meta() not working in save_post
- How do I save each option in a multiple select menu as it’s own meta_key + meta_value pair?
- Update post on save
- Post meta checkbox becomes unchecked occasionally
- Return code from save_post action?
- update_post_meta not working in save_post
- save_post only saves meta data on second save
- Get Post ID with insert/edit link
- How to manage saving custom field from Quick edit and Post Save using save_post action hook without colliding each other?
- Why save_post_$(custom_post_type) is fired even if I am not already saving a post?
- Set the value of custom field when post is published or updated
- pass error to admin_notices on “quick edit”/save_post action
- save_post requiere at least one uploaded file to be published
- Get $_POST & $_REQUEST values before adding/updating post
- How can I create a new user account while creating a new post, and then set that new user as the author of that new post?
- Validate post checking if child term is assigned
- Clear cache on post of one type when something happens to post of other type
- Why not fire the save_post event?
- Compare custom taxonomies of updated post (or new post) [Updated with progress]
- WordPress 4.9.8 doesn’t save if content has style=”
- Reset all transients on post or page save
- Using PODS data with save_post
- Cant’t delete my custom posts
- where does this $post_id come from?
- Update current WP post every 3 minutes [closed]
- Changing new post to “pending” on publish – but “Publish failed” – why?
- update_post_meta not working in foreach
- Save post in another table
- Strange bug on post/page save
- draft_to_pending action doesn’t seem to fire
- What action to use for when a post is saved / published, with a caveat
- Custom wp_editor doesn’t update post_content
- Save custom value to main content of post
- Check for page template on save_post hook
- Access NEW/UPDATED post values in save_post() callback function
- save button grayed out randomly
- Post editor doesn’t save embed media [closed]
- How to get a post meta value and pass that to update_option when a post is created or updated?
- WordPress save meta data : Displaying the word Array when selected
- Connection Reset on post/page save
- Meta data not saved on save_post
- Insert/Update DB table when making new post or update older one
- Prevent Page/Post From Being Created based on Pages/Posts per User per Time Unit
- How to debug | Some times the “Save Draft” button seems to spin but does not actually save
- My custom title gets duplicated at every save or post update
- Use save_post to generate file on wordpress
- Detect, if post is saved manually or programmatically in save_post-hook
- wp_redirect() – headers already sent
- wp_redirect() function is not working
- Hook to process a new taxonomy tag before it is created?
- stop redirection on /wp-admin call to /wp-login
- How to assign default taxonomy to pages on ‘save_post’?
- wp_insert_posts Fatal error: Maximum function nesting level of ‘100’ reached, aborting!
- Temporary redirect prevents getting $_POST array
- Unable to get wp_redirect() working after adding a CPT via the front end
- Redirect if not logged in?
- Controller functionality – if user is not logged in send them to specific page (not wp_login)
- wp_insert_post_data filter not working correctly after upgrade to WordPress 5
- How to auto login after registration? [duplicate]
- When are wp redirect methods safe to hook?
- How to redirect non-logged in users from a URL to a specific page?
- Why does post-slug not get saved for drafts?
- Run a function on all posts
- Dynamically set taxonomy term and show admin notice on post save
- How to add array [closed]
- Change auto post title generation according to different post properties
- Class property seems to lose scope, attached to save_post action?
- Editor meta box Showing but not saving
- Missing domain http://./wp-… in redirects
- Controller functionality – User not logged in/ redirect to registration page (not wp_login)
- Why does the first page of one category redirect to empty page 4?
- Infinite redirect loop in my local environment
- How to check post meta isset or not empty during publish/save post?
- Why sometimes wp_redirect() reset cookie?
- Select input in metabox not updated
- How can I prevent caching of wp_redirect?
- Adding term to a custom taxonomy based on term from product category
- Add Tag to post after publishing
- Post and Pages section inside WordPress admin are completely blank
- Redirect Category Media ‘URL’ when clicked
- Output Redirect Headers on Admin Dashboard Page
- Fix WP Redirect Loop
- Generate post title and permalink from custom field and post date
- How to remove post redirects
- added a meta box to post however when saving menu while debug on throws a warning
- Using set_post_thumbnail inside save_post action gets overwritten
- Making an under maintenance page (without using plugins)
- get_post_meta() returns nothing in save_post, publish_post, wp_after_insert_post
- How to make custom WordPress page deliver search results
- Does wp_safe_redirect() no longer works?
- Redirect posts to post editor page based on query string