Sonu2007 Posted April 29, 2017 Share Posted April 29, 2017 So i want to know there is any way set BASE_PATH_IMG location to custom? and how to take care of cookie less subdomain if i want to move statics files to subdomains. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 29, 2017 Share Posted April 29, 2017 to the first part, you should just need to use a hook... <?php function custom_base_img_path_hook($vars) { return array("BASE_PATH_IMG" => "/custom/image/folder"); } add_hook("ClientAreaPage", 1, "custom_base_img_path_hook"); ?> to the second, i'm not sure. 0 Quote Link to comment Share on other sites More sharing options...
Sonu2007 Posted April 29, 2017 Author Share Posted April 29, 2017 Thank i will try this. In WP cookie free can be done using define("WP_CONTENT_URL", "http://static.yourdomain.com");define("COOKIE_DOMAIN", "www.yourdomain.com"); Anything similar in WHMCS? to the first part, you should just need to use a hook... <?php function custom_base_img_path_hook($vars) { return array("BASE_PATH_IMG" => "/custom/image/folder"); } add_hook("ClientAreaPage", 1, "custom_base_img_path_hook"); ?> to the second, i'm not sure. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.