Some examples:
This is in a snippet with priority
function pageLists($list){...}
this is the function call in a snippet, which has priority 18:
if(function_exists('pageLists')){
$address = pageLists($list);
$y=0;
foreach ($address as $value) {
if($y==0){$blogi=$value;}
...
$y++;
}
}
Well the function pageList exist and in the final run WordPress finds it, but if I try to save the snippet without using the if-statement, Code Snippet wrongly complains that the function doesn’t exist. I just can’t save the snippet without using as such unneeded function_exists function. If I define the function in the same snippet, Code Snippet would accept the usage of the function and it would accept to save the snippet. But after saving the site will be crashed!
Finding of existing own function succeeds sometimes and sometimes not. I don’t have figured any reason, why finding existing function fails. You can try to save your snippet without using if(function_exists(‘your-function’). If Code Snippet doesn’t allow to save the snippet, use then the function_exist(‘your-function’). But remember newer defining your function twice.