I've got a portion of php code that I must devote a directory somewhere after which inside my custom WordPress page templates, reference this code library in a specific reason for my page template.

Any help by doing this, could be much appreciated.

Unsure basically can make my very own wordpress hook to seize this code and put it where I would like it used?


inside your wordpress templates you should use php code. therefore simply do an

<?php include("somefile.php"); ?>

Training regimen all individuals functions in to the functions.php of the theme or move them into some exterior PHP file and blend it with include() or require() in your functions.php file.