a->b means that b is a member of a, e.g., given an object $x of a class with member function m(), we could call m() by writing $x->m().
In your case, $custom_fld is (presumably) an object of a class with a member function named display_sections. This member function returns an object of a class with a member function named main_category.