library/Content/CustomTaxonomy.php
public function populatePostTypeSelect($field)
    {
        $choices = array_map('trim', get_post_types());

        $choices = array_diff($choices, array('revision','acf-field-group','acf-field','nav_menu_item'));

        if (is_array($choices)) {
            foreach ($choices as $choice) {
                $field['choices'][ $choice ] = $choice;
            }
        }

        return $field;
    }
public function populatePostTypeSelect($field)
    {
        $choices = array_map('trim', get_post_types());

        $choices = array_diff($choices, array('revision','acf-field-group','acf-field','nav_menu_item'));

        if (is_array($choices)) {
            foreach ($choices as $choice) {
                $field['choices'][ $choice ] = $choice;
            }
        }

        return $field;
    }
public function populatePostTypeSelect ( $ field ) { $ choices = array_map ( 'trim' , get_post_types ( ) ) ; $ choices = array_diff ( $ choices , array ( 'revision' , 'acf-field-group' , 'acf-field' , 'nav_menu_item' ) ) ; if ( is_array ( $ choices ) ) { foreach ( $ choices as $ choice ) { $ field [ 'choices' ] [ $ choice ] = $ choice ; } } return $ field ; }
Adds value to acf post type filed
@param  array $field Acf field
@return void
Adds value to acf post type filed