How to redirect to edit.php page after saving the post,product and showing the message “post saved “
You could use filter post_updated_messages : //Message handling when updating posts function set_messages($messages) { global $post, $post_ID; $post_type = get_post_type( $post_ID ); $obj = get_post_type_object($post_type); $singular = $obj->labels->singular_name; $messages[$post_type] = array( 0 => ”, // Unused. 1 => sprintf( __($singular.’ uppdaterad. <a href=”https://wordpress.stackexchange.com/questions/161464/%s”>Visa ‘.strtolower($singular).'</a>’), esc_url( get_permalink($post_ID) ) ), 2 => __(‘Custom field uppdaterad.’), 3 => … Read more