Thời gian đọc: 2 phút
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘disable_embeds_rewrites’ not found or invalid function name in /var/www/vnengineer.net/public_html/wp-includes/class-wp-hook.php on line 324
The error message you’re seeing, Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'disable_embeds_rewrites' not found or invalid function name
, indicates that WordPress is attempting to call a function named disable_embeds_rewrites
that either does not exist or has not been defined properly.
Here are some steps to troubleshoot and fix this issue:
functions.php
file or any custom plugins to see if the disable_embeds_rewrites
function is defined.add_action
or add_filter
calls in your theme or plugins that are referencing disable_embeds_rewrites
. These should only reference valid, defined functions.disable_embeds_rewrites
is referenced and it’s incorrect, either remove it or replace it with the correct function.