简体   繁体   中英

include custom code in wordpress for purge varnish

I should add custom code in the end functions.php (in theme directory) for wordpress website for Purges on a Post Publish or Purges on a Post Delete, Is there a way to include this code for all wordpress website without change functions.php file? Sometimes some functions.php file is encrypted by IonCube and cannot be changed it manually.

The question is why you would want to do this, provided that there are already plugins to do the job. Eg this one .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM