Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('template_redirect', 'add_header_redirect', 0, 0);
- function add_header_redirect(){
- if( is_page(array(8, 'testimonials', 'Testimonials')) ){
- $default_testimonial = get_permalink( 19 );
- header("Location: $default_testimonial");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement