Using Includes in Templates in Document Head
Including PHP files inside actions isn’t recommended, and is considered highly unusual. If what you were trying to do worked, it would be fragile, and heavily dependent on ordering. The reason your code didn’t work: add_action(‘wp_head’, ‘fst_include’,20); Is because actions are added with a priority of 10 by default, yet your include is on priority … Read more