how to create redirect page in wordpress

how to create redirect page in wordpress

<?php
wp_redirect( $location, $status );
exit;

?>

Ex:<?php wp_redirect( home_url() ); exit; ?>

Web Design Development Company Trivandrum Kerala India

Web Design Development Company Trivandrum Kerala India



At Artemas, the company’s powerful web development techniques are the fundamental driving force to all of its well acclaimed successful websites. The company has various processes in place to create entire web products to meet various client requirements. Business analysts translate business data from the client end, which technical experts analyze to create robust websites, purely tailored for the client’s business and its web purpose.
421, Nila Technopark, Trivandrum – 695 581
Tel: +91 471 2700061
Mail: info@artemasdigital.com
artemasdigital.com


simple class example in php


simple class example in php

<?php
class Customer {
public $name;

public function setName($name) {
$this->name = $name;
}

public function getName() {
return $this->name;
}
}

$c = new Customer();
$c->setName("Sunil Bhatia");
echo $c->name; // this will work as it is public.
$c->name = "New Name" ; //
?>