I have facing a problem of this error from last week. I search a lot on google but didn't find any solution. / This is my website and
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'add_custom_scripts' not found or invalid function name in /home/www/delegatehosting/wp-includes/class-wp-hook.php on line 286.
This is the issue which i facing
I have facing a problem of this error from last week. I search a lot on google but didn't find any solution. https://delegatehosting/ This is my website and
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'add_custom_scripts' not found or invalid function name in /home/www/delegatehosting/wp-includes/class-wp-hook.php on line 286.
This is the issue which i facing
Share Improve this question edited Mar 19, 2019 at 10:22 fuxia♦ 107k39 gold badges255 silver badges461 bronze badges asked Mar 19, 2019 at 5:59 Alan FranklinAlan Franklin 11 bronze badge1 Answer
Reset to default 0add_action
takes a valid callable function as second parameter. Wordpress is unable to find add_custom_scripts
function which is being used to add some custom scripts probably, may be its not defined anywhere. You might have to look into fucntions.php
file of your active theme/child-theme, find the add_action
where second parameter is passed add_custom_scripts
. There are two things you can do after finding this line.
- Change the
add_custom_scripts
to a valid callable function. - Comment that line if you don't need want to use that .