How do I call my functions from functions.php to html.php with the use of AJAX? I want to declare my functions inside my html.php file without using include or require. only ajax pls. Thanks allot! see below
functions.php
<?php
function samplefunc(){
echo "Hello world";
}
?>
html.php
<html>
<body>
<?php samplefunc(); ?>
</body>
</html>