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;
});
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;
});