最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - wp_force_remove_style' not found

programmeradmin0浏览0评论

I have this error show up in my error_log.

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_force_remove_style' not found or invalid function name in wp-includes/class-wp-hook.php on line 287

I will appreciate your advice as to how to fix this.

Thank you.

I have this error show up in my error_log.

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_force_remove_style' not found or invalid function name in wp-includes/class-wp-hook.php on line 287

I will appreciate your advice as to how to fix this.

Thank you.

Share Improve this question edited Dec 16, 2020 at 22:31 Rup 4,4004 gold badges29 silver badges29 bronze badges asked Dec 14, 2020 at 19:04 Tony H.Tony H. 1
Add a comment  | 

1 Answer 1

Reset to default 2

You have an action, but not the valid callback for your action.

For example,

You have somewhere following line:

add_action( 'some_action', 'wp_force_remove_style' );

But not have "wp_force_remove_style" function defined.

You have to have a function as following:

function wp_force_remove_style() {
    // Do you stuff.
}
发布评论

评论列表(0)

  1. 暂无评论