errors - Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'add_custom_scripts&#3

admin2025-06-01  1

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 badge
Add a comment  | 

1 Answer 1

Reset to default 0

add_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.

  1. Change the add_custom_scripts to a valid callable function.
  2. Comment that line if you don't need want to use that .
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748793244a313764.html

最新回复(0)