Jump to content

Calling function from another file


chai

Recommended Posts

Hi,

I am trying to write often-used code snippets such as add, edit,delete function and place them in
functions.php

So, whenever I need to use them, I can just call then up and pass parameters to them.

I am able to call a function that is inside the same page it is called.

But, how do I call a function that is in another file.

I've read about the include() function, but it doen't perform what I wanted.

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/10361-calling-function-from-another-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.