Are there any specific PHP functions or methods that can help with setting up URL redirections in WordPress?

When setting up URL redirections in WordPress, you can use the `wp_redirect()` function to redirect users to a different URL. This function takes the new URL as a parameter and performs the redirection. Additionally, you can use the `add_action()` function to hook into WordPress actions, such as `template_redirect`, to trigger the redirection at the appropriate time.

function custom_redirect() {
    if( is_page( 'old-page' ) ) {
        wp_redirect( home_url( '/new-page' ), 301 );
        exit();
    }
}
add_action( 'template_redirect', 'custom_redirect' );