I am trying to use a simple
publish_post / publish_page hook to get the URL of the post/page when it is either published or updated so I can later turn it into a static page.
Is it possible to add this hook outside of the theme functions.php file, because this is far more preferable to me? I also am unsure how to grab the file location / URL from the result? Any help is very much appreciated.