0
我想在用户更改/编辑xProfile字段(宽度为ID 1542)时更新自定义user_meta字段。更新xprofile字段后的Buddypress挂钩
但这钩不行
function action_xprofile_data_after_save($x)
{
print_r($x);
// if($field == 1542)
// {
// update_user_meta($user_id, 'field_1542', 'changed');
// }
}
add_action('xprofile_data_after_save', 'action_xprofile_data_after_save', 10, 1);