Function from included php file not working
-
If I create a function inside the Code Snippet, it works properly.
But if I use “include (‘myfunctions.php’) and then define
add_shortcode( ‘myFunc’, ‘MyFuncExt’ );and MyFuncExt is defined in the myfunctions.php, shortcode call [myFunc] does not work at all.
Why can’t I use functions from external php file?
Thanks
Bostjan
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Function from included php file not working’ is closed to new replies.