Add advance custom field plugin support
Fix some undefined warning, conver protected property/method to public