update function name in affwp_object_to_array()