那只是PHPserialized 数组表示法。您将通过以下代码获得相同的结果:
$meta_value = array(
\'alumni\' => \'Yes\',
\'donations_collected\' => \'10\'
);
update_user_meta( $team_member_id, \'wp_s2member_custom_fields\', $meta_value);
因此,如果您想将捐款收集值更改为11:
$meta_value = get_user_meta( $team_member_id, \'wp_s2member_custom_fields\', true );
$meta_value[\'donations_collected\']++;
update_user_meta( $team_member_id, \'wp_s2member_custom_fields\', $meta_value);