function exists code example
Example 1: function exists
function_exists('function_name'); //Will return true if function exists
Example 2: js check if function exists
if (typeof yourFunctionName == 'function') {
yourFunctionName();
}
function_exists('function_name'); //Will return true if function exists
if (typeof yourFunctionName == 'function') {
yourFunctionName();
}