我的函数中有一个非常简单的函数和挂钩注册。php,如下所示:
function do_this_thingy(){
// I am sending myself some simple admin report mails, tested & works
}
add_action( \'mail_event_hook\', \'do_this_thingy\');
然后,在页面模板中,我有一行:wp_schedule_single_event( time() + 600, \'mail_event_hook\' );
// expected: to receive message in ten minutes time. Result: no message :(
可能出了什么问题?编辑:问题答案:
这是本地服务器上的吗?不,这是我的现场WP