Title: Chsnages via PHP Code
Last modified: January 29, 2020

---

# Chsnages via PHP Code

 *  [redcarcs](https://wordpress.org/support/users/redcarcs/)
 * (@redcarcs)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/chsnages-via-php-code/)
 * Can Custom URL for a specific page be added and removed via PHP Code, I have 
   a page that I would like to automatically redirect when a trigger is activated
   in PHP code?

Viewing 1 replies (of 1 total)

 *  [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/chsnages-via-php-code/#post-12394521)
 * You can set the custom URLs by creating a record in your wp_postmeta table with
   the meta_key of ‘_links_to’ and the meta_value of whatever URL you want

Viewing 1 replies (of 1 total)

The topic ‘Chsnages via PHP Code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/page-links-to_fafafa.svg)
 * [Page Links To](https://wordpress.org/plugins/page-links-to/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-links-to/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-links-to/)
 * [Active Topics](https://wordpress.org/support/plugin/page-links-to/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-links-to/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-links-to/reviews/)

## Tags

 * [automate](https://wordpress.org/support/topic-tag/automate/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/chsnages-via-php-code/#post-12394521)
 * Status: not resolved