wp-includes/link-template.php:1790Retrieves the previous post that is adjacent to the current post.
$in_same_termbooloptionalfalse$excluded_termsint[]|stringoptional''$taxonomystringoptional'category'WP_Post|null|stringfunction get_previous_post( $in_same_term = false, $excluded_terms = '', $taxonomy = 'category' ) { return get_adjacent_post( $in_same_term, $excluded_terms, true, $taxonomy );}Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/link-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.