What is the best practice to allow Plugin2 to call the functions of Plugin1?
// PLUGIN_1.PHP ///////////////////
function helloworld($data){
// saves $data to DB
}
// PLUGIN_2.PHP ////////////////////
helloworld('testing!');
However, plugin_2.php might be called by WordPress first, and this would return an undefined function! I can't use if(function_exists()) because I need to make sure the helloworld() function is called. Any solutions?