我试图在用户注册后将值插入到列中。
可悲的是,在我的测试之后,我发现了一个错误;写入错误“;钩子怎么了?
function org_teammember( $user_id ) {
$teammember = \'yes\';
$sql = "INSERT INTO wp_usermeta (ocp_team_member)".
"VALUES(\'$user_id\',\'$teammember\')";
$result = mysqli_query($wpdb, $sql) or die(\'Write Error!\');
}```