Have a look at wp_ajax action hook for invoking your action. Then use update_post to update the title and slug.
Related Posts:
- How to prevent apostrophes and quotes from appearing in permalinks?
- How to update permalink on the fly?
- Is it possible to get a page link from its slug?
- How to get permalink and title from post ID?
- WordPress slug issue with non-latin characters
- Removing the redirect after changing a page’s slug
- Stop WordPress from reserving slugs for media items?
- Change slug on post creation
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Post type child of another post type
- Why don’t WordPress post slugs allow accents?
- Is It A Good Idea To Change Author Slug (user_nicename field) Directly In MySQL DB?
- How can I force WordPress to redirect to canonical permalinks?
- When creating a WordPress page, a “-2” suffix is added to new pages’ permalinks
- How to i18n slugs for templates?
- Remove parent slug for child pages
- How to Remove Slug From Database?
- Remove parent slug for child pages
- Replace WordPress %postname% suffix with %postid%?
- Limiting the number of words or characters in the slug/permalink
- Gutenberg Editor: dynamicaly change slug field with an ACF field
- Why I can’t change the permalink of this page?
- How to edit the slug/permalink in Gutenberg?
- Make attachment pages require a base url
- Is using %postname% for permalinks really that bad for performance?
- How can I make my .htaccess file writeable by wp-admin?
- Filter string like a slug
- Change author slug and functionality
- CPT Post Title Permalink: Replace “@” (or all special characters) with dash “-” instead of just removing
- How can I add a page’s ID to its permalink using WP_Rewrite?
- How to modify the slug for the default wp posts without affecting other posttypes?
- Does rename of page slugs create 301 redirects from old slug to new (same as for posts)?
- Get new WordPress slug from old wordpress slug
- Non latin post slug truncate
- filtering special chars from post slug
- Share same Slug for a Custom Post Type and 2 Taxonomies
- force permalink slug for page vs post_type slug parent
- Title attributes on Permalinks for posts and products
- get_permalink returning site home url instead of the url of slug being passed
- wp not making CPT permalink / slugs unique
- Edit page slug after save, cause 404 by linked pages
- Pre-populate Slug / Permalink with URL
- Slugs Disappeared Leaving 404s – Quick way to repopulate?
- Custom permalinks in WordPress
- wordpress how to replace url /bar with foo/bar for custom post type
- WordPress Installed But Not Showing Up! [closed]
- Echo title with permalink
- Suddenly new posts have the default permalink instead of the post name
- how do prevent wordpress from creating permalinks for media files
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- Bulk append URL (add word to slug)
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Page content doesn’t display when published but does when previewed as draft?
- Remove international characters from slug – Almost done – Bit help
- How to create posts or pages with the names in wordpress?
- permalinks on title tag
- How to remove slug from front page?
- Gutenberg Editor: dynamically edit slug field based on ACF field
- How do I structure my permalinks in WordPress?
- New posts link to old posts (random)
- Modify post slug before saving
- Permalinks causing wp-json to 405
- Does wordpress take care of slug collisions?
- assets aren’t loading on a page but loads on others? slug permalink conflict?
- How to prevent wordpress from lowering Capitalized letters
- WordPress slug confusion
- Fatal Error when trying to load Permalinks page on WP admin [closed]
- Code snippet to add filter pre_post_link to change Media URL (post_type attachment permalink/slug)
- Include a page’s “category” in its URL
- All files in public_html, Cannot launch WordPress site via wp-admin
- home page slug editor missing from WordPress
- permalink not showing correctly using wp_insert_post and post_name
- 404 error on published page with specific permalink
- 404 page not found – Yet open admin page it works
- How to allow different authors to use same post slug?
- Problem with permalinks
- Allowing slash in slug/permalinks
- Do shortcodes in title before permalink is generated
- Author permalink
- Force/Limit the post/page slug to accept only url friendly characters
- Removing or hiding slug/permalink from htaccess
- Where is wordpress redirecting wp-admin/admin/dashboard to wp-admin and how to turn it off
- Uppercase vs. Lowercase page slugs
- Keep wordpress from modifying my permalinks
- Is there a way to remove the option to modify the Slug in post.php
- Possible to hide parts of the slug from get_template_directory_uri and bloginfo(‘template_directory’)
- Change permalink when page category selected in admin
- [Plugin leenk.me]modify get_the_title
- Include other parameters in permalinks for better management of browser history
- Leverage permalinks with AJAX
- How can i edit all posts slug in bulk keeping WP native redirect?
- Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”
- Display a custom slug in URL depending on user variable
- Post/page without slug
- Different template fallback when changing permalinks
- UI does not show correct Slug after modified using save_post action
- Pages resolve at different URLs (different capitalizations)
- Can you customize the automatic permalink population on new posts?
- WordPress not remembering old slugs for pages
- Change default URL (or permalinks) in the back-end