You mean you don’t want people to be able to access your website (e.g. abc.com) while you’re installing your new theme? Or redirect them to a different domain (e.g. xyz.com)?
Actually i would like to check following type of condition on my theme:
In that theme i would like to make a condition, while installing my theme:
if(mydomain!=’abc.com’)
{
// Show Something Error on Installation // You Couldn’t install this theme without Developers permission.
}exit;
I would like to check that type of condition. any idea about this?
Is this a network installation?
Nup ! Not a network installation!
are you creating your own custom theme?
I guess there are many admins in that website…
Yes anshu verma ! i am going to create my own custom theme!
No Nabil k. there are not so many admins.
You mean something like this?
<?php
if($_SERVER['HTTP_HOST'] != 'abc.com')
{
echo 'You can\'t install this theme without the developer\'s permission.';
exit;
}
?>