Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/262.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php WordPress添加操作错误调用用户函数数组()_Php_Wordpress - Fatal编程技术网

Php WordPress添加操作错误调用用户函数数组()

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

我正试图在可视化表单生成器插件中设置一个钩子。 文档告诉我在插件目录中创建一个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@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()不应在


有人知道如何解决这个问题或为我指出正确的方向吗?

您提供的代码和错误消息表面上看起来完全无关。您的权利。我删除了源代码,但仍然得到了错误。必须停用插件,直到错误被删除。