how to create a function in functions.php code example Example: function php function functionName() { //code to be executed; }