You can using redirect_post_location
action in the functions.php in your theme.
For example:
add_action('redirect_post_location', function () {
global $post;
return 'http://google.com/search?q=' . $post->ID;
});
Related Posts:
- Visual Studio SignTool.exe Not Found
- How can I set a draft page as parent without publishing?
- Display a post’s publish date from 2112
- Does blocking xmlrpc.php affect pinging update services like pingomatic
- I can’t preview post’s change once they are published
- Publish post when edit post form submitted with enter/return pressed on keyboard
- How to make scheduled post preview visible to anyone?
- Scheduled Posts and wp-cron – Why don’t scheduled posts publish if too old?
- Why does publish_{custom-post-type} fire on update?
- Show recent published posts
- Is there a way to know if a post has been published through XML-RPC?
- How to unpublish a page and still keep a draft?
- get_terms on save_post hook
- Save and Publish button not working after installing SSL
- Disable “preview changes” button
- Can we have private drafts?
- Update post meta on bulk edit / update
- Can’t schedule post for another time
- publish_post called too early
- Custom save button shows ‘Are you sure you want to…’ dialog
- Get publish post link?
- Controlled publishing in WordPress
- Change the text of the publish button to Save
- problem with publish date not always appearing [duplicate]
- What is happening to make my Update/Publish button disabled?
- What is the reason for the new_to_publish hook not working?
- After I publish a post where does it go
- Should you manually ping new WordPress posts?
- Authors should not publish
- How to add custom status to quick edit
- I need to modify drafts using custom data from database and then publish it
- How to show or hide a post based on meta_value selection?
- i am making text changes on my page show in preview not on live site, why? [closed]
- Is WordPress “publish” atomic?
- How to move post process to background
- How does redirect work when publish date changes and date in url changes?
- Gutenberg publish date datepicker
- How Google Indexer should only index published pages
- Publish Post Action Not Working
- Is it normal for a scheduled post to say “Missed Schedule”
- Manage multiple wordpress installs (Best Practice)
- Showing the next post’s title, even if it’s an unpublished post
- Force Publish Future (Scheduled) Posts Immediately [duplicate]
- Can’t publish posts, Jetpack won’t connect, empty notification emails to my inbox [closed]
- Duplicate post on publish
- How is it possible to use a very reduced version of WordPress?
- Problems in updating a self-developed plugin
- WordPress plugin to publish to multiple remote WordPress blogs
- How to trap “Publish” button to check for meta box validation?
- How to ignore or disable nextpage tag?
- How to display and use all existing tags at my write-post-at-frontend-panel?
- Publish Post After Click On A Link
- Publish posts only after the condition is met
- How to add a checkbox inside the “Publish post” widget?
- How can I display a specific user’s first published post?
- Send email to user that his post has been rejected
- Add a Class to Current Page WP_LINK_PAGES
- Append a to every post to force additional page link (and static content)
- Every possible way to get data (posts) from WordPress
- How to run a function when post is edited or updated using publish post action?
- How to deal with equal & similar arguments for a function?
- count the total number of comments the user has received for his published posts
- Add Unique Classes to Next and Previous in WP_LINK_PAGES
- Changing wordpress publication date to ACF date and time picker date not working
- Custom post type suppress transition from future to publish
- Post Pagination Customization (wp_link_pages) Editing Navigation
- “Submit for review” for updates on existing posts
- Copy post to separate database with “add_action(….)”
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Display author name, outside the loop, if they haven’t published a custom post
- Update status of all posts in a category
- Get only used meta_values
- do more action after I publish a post
- Assign published posts to another user automatically
- How to add publish date in the title
- Post: how to set created date after post has been published [closed]
- Where is publish_post hook fired?
- How can I get the user that publishes a post?
- query to use to link to taxonomy single page
- How to add correct Last update in Postings (the_modified_time)
- Unable to Change “Pages:” Before WP_LINK_PAGES
- Adding an Unlinked Space in a Custom Function
- Remove Spaces From WP_LINK_PAGES
- Publish box in CPT remove ‘edit’ link
- Update main post with same category when creating custom post to update the modified date
- Create a new post on a specified publish date via link?
- suffix title with “EXPIRED” when scheduled post has reached it’s published date
- display wordpress user who published a pending post of another user
- Publish button inside custom field group
- Disable Facebook Comments Automatically On CPT
- Firing page_publish where page is child page
- problem with blank page
- Change event firing in wordpress
- I want my post to republish again after adding a custom field
- How to hook into publish_posttype?
- Check if there is an post to be published in future
- Edit the Publish Widget Options
- Plugin SVN folder structure
- Return All Post from publish to draft [duplicate]
- when I Try to Create new Post or Page it goes Draft(I can’t post Anything)