Search
 
SCRIPT & CODE EXAMPLE
 

PHP

redirect wordpress

add_action( 'template_redirect', 'redirect_to_other_page' );
function redirect_to_other_page() {
    if ( is_page( 143 ) ) {
	  
      wp_redirect( '"'.home_url().'/services/messenger/"', 301 );
      ///wp_redirect( 'example.com/page', 301 ); 
    exit;
    }
}
Comment

wp redirect

wp_redirect( $url );
Comment

PREVIOUS NEXT
Code Example
Php :: laravel get host with http 
Php :: php random float number with 2 decimal places 
Php :: get count of relationship table laravel 
Php :: wp_query limit 1 
Php :: twig for 
Php :: get the value of href in string php 
Php :: php header redirect same page 
Php :: php string replace space 
Php :: behamin brequest installation on laravel 
Php :: php qatorni teskari aylantirish 
Php :: if online php 
Php :: php switch 2 variables 
Php :: melhor linguagem de programação 
Php :: laravel gigapay list employee 
Php :: php artisan serve 
Php :: php datetime to mysql 
Php :: php get ip by domain 
Php :: phpmailer for wordpress 
Php :: how to hide get parameters in url php 
Php :: php remove wordpress shortcodes 
Php :: Redaxo new Mform all fields - input fields - PHP 8+ - MForm 7.0+ 
Php :: remove spaces from string php 
Php :: how to link external php file to html 
Php :: get today date in php 
Php :: cakephp order by 
Php :: laravel vendor:publish not working 
Php :: auto submit button php 
Php :: generating-random-token-php 
Php :: empty table in laravel 
Php :: Laravel Unable to migrate or Make Seeds 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =