wp_create_redirect
Create a URL redirect by specifying the source path, target URL, and optional HTTP status code. Enable or disable the redirect to control WordPress site navigation.
Instructions
Create a URL redirect
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | ||
| target_url | Yes | Target URL | |
| source_path | Yes | Source path e.g. /old-page | |
| status_code | No | 301 |