Wordpress:如何在用户确认电子邮件并激活帐户后添加帖子请求


Wordpress: How to add a post request after the user confirmed the email and activated the account?

尊重所有wp模式、安全性和更新。也许已经有一个插件可以执行此操作。。我找不到。

我看到有一个钩子USER_REGISTRATION_COMPLETE可以使用,我想知道编辑wp代码的一般方法是什么。我应该创建自己的插件吗?感谢

您可以在主题的functions.php文件中使用它

add_action( 'user_register', 'action_after_user_register', 10, 1 );
function action_after_user_register( $user_id ) {
    //Do Some Things
}

当链接到Odoo系统时,我成功地使用了这个功能。