wp_create_redirect
Create URL redirects from a source path to a target URL, optionally setting HTTP status code and enabling or disabling the redirect.
Instructions
Create a URL redirect
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_path | Yes | Source path e.g. /old-page | |
| target_url | Yes | Target URL | |
| status_code | No | 301 | |
| enabled | No |