> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Redirecting new users to a default page on WordPress

> Guide new users to a key conversion page on your WordPress site with a simple PHP code snippet.

You can redirect newly registered users to a simple thank you page, a blog section or any specific on your [WordPress](https://hosting.com/hosting/platforms/wordpress-hosting) site with a simple code snippet without any plugin. This article gives you a step by step guide on redirecting your newly registered users to the [WordPress](https://hosting.com/hosting/platforms/wordpress-hosting) blog section.

## How to add a shortcode to redirect new users

To redirect new users to a designated page, follow these steps:

1. Log in to your WordPress site with an administrator account.

2. On the **Dashboard** in the left sidebar, click **Appearance**, and then click **Editor**: \*\*\*\*

3. Access the **functions.php** file for the Theme.Click on Edit and add this code snippet at the bottom:

```javascript theme={null}
function redirect_to_blog(){ return home_url( '/blog/' ); } 
add_filter( 'registration_redirect', 'redirect_to_blog' );
```

4. The above function is basically going to redirect all the new registered users right after the successful registration to the URL slug /blog/.Save the file.

```

 
```

## Related articles

* [Changing a WordPress account username](/docs/changing-a-wordpress-account-username)

* [Changing the WordPress site URLs](/docs/changing-the-website-url-in-wordpress)

* [Changing the WordPress language](/docs/changing-the-wordpress-language)

* [Clearing the cache in WordPress](/docs/clearing-the-cache-in-wordpress)
