create the tribe_prepare_for_json_deep() function - updates #29681