Php WordPress添加操作错误调用用户函数数组()
我正试图在可视化表单生成器插件中设置一个钩子。 文档告诉我在插件目录中创建一个php页面,如下所示Php WordPress添加操作错误调用用户函数数组(),php,wordpress,Php,Wordpress,我正试图在可视化表单生成器插件中设置一个钩子。 文档告诉我在插件目录中创建一个php页面,如下所示 add_action( 'vfbp_after_save_entry', 'filter_vfbp_after_save_entry', 10, 2 ); function filter_vfbp_after_save_entry( $entry_ID, $form_ID ) { // execute some custom code here $friends = 'email@exa
add_action( 'vfbp_after_save_entry', 'filter_vfbp_after_save_entry', 10, 2 );
function filter_vfbp_after_save_entry( $entry_ID, $form_ID ) {
// execute some custom code here
$friends = 'email@example.com';
mail( $friends, 'New Entries', 'We just got new entries for our contest!' );
return $entry_ID;
}
我不断发现以下错误:
严格标准:call_user_func_array()要求参数1为有效回调,非静态方法allow_php_in_posts::shortcode_advanced()不应在
有人知道如何解决这个问题或为我指出正确的方向吗?您提供的代码和错误消息表面上看起来完全无关。您的权利。我删除了源代码,但仍然得到了错误。必须停用插件,直到错误被删除。