• Resolved jameswithsupersonic

    (@jameswithsupersonic)


    Hi, we created a function in function.php to auto trigger the export upon page publish. We want to check the URLs in the current include config if it exists, we don’t include the URL, else we will add the URL into the config. Basically we want to be able to automatically include URLs to generate static without manually including them in the simply static settings, as we are triggering the generation externally via api. We are also restricting simply static from all users except the site admin.

    function trigger(){
    //check current page url
    if (exist){
    do nothing
    }else{
    add to simply static include config}
    }

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘function to add into include’ is closed to new replies.