0
ユーザーがxProfileフィールドを変更/編集したときにカスタムuser_metaフィールドを更新したいと考えています(ID 1542の幅)。xprofileフィールドの後にフックプッシュフックが更新されました
これは、私は、このアプローチは、フロントエンドとバックエンドの両方で行った編集のために働くと考えている
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);