2013-09-26 22 views

回答

1
add_action('user_register', 'myplugin_registration_save'); 
function myplugin_registration_save($user_id) { 

    // get the POST values and insert into the custom table 
    if (isset($_POST['first_name'])) { 
     // save into the custom table created 
    } 

} 

这不会阻止用户在WordPress上创建,但可以将用户数据插入到自定义表中。这会为你工作吗?

+0

是的这有效,谢谢你的帮助:) –