Redirection after saving a post
You can redirect this way: add_action( ‘save_post’, ‘save_meta_values’ ); public function save_meta_values( $post_id ) { if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) { return $post_id; } // More code here … // Check if it’s a custom post type names news_info if ( ‘news_info’ === get_post_type( $post_id ) ) { // Redirect to the … Read more