components/Advanced-Relationships.php
public function data_post_types( $name = null, $value = null, $options = null, $pod = null, $id = null ) {

		$data = array();

		$post_types = get_post_types( array(), 'objects' );

		$ignore = array( 'revision', 'nav_menu_item' );

		foreach ( $post_types as $post_type ) {
			if ( in_array( $post_type->name, $ignore, true ) || 0 === strpos( $post_type->name, '_pods_' ) ) {
				continue;
			}

			$data[ $post_type->name ] = $post_type->label;
		}

		return apply_filters( 'pods_form_ui_field_pick_data_post_types', $data, $name, $value, $options, $pod, $id );
	}
public function data_post_types( $name = null, $value = null, $options = null, $pod = null, $id = null ) {

		$data = array();

		$post_types = get_post_types( array(), 'objects' );

		$ignore = array( 'revision', 'nav_menu_item' );

		foreach ( $post_types as $post_type ) {
			if ( in_array( $post_type->name, $ignore, true ) || 0 === strpos( $post_type->name, '_pods_' ) ) {
				continue;
			}

			$data[ $post_type->name ] = $post_type->label;
		}

		return apply_filters( 'pods_form_ui_field_pick_data_post_types', $data, $name, $value, $options, $pod, $id );
	}
public function data_post_types ( $ name = null , $ value = null , $ options = null , $ pod = null , $ id = null ) { $ data = array ( ) ; $ post_types = get_post_types ( array ( ) , 'objects' ) ; $ ignore = array ( 'revision' , 'nav_menu_item' ) ; foreach ( $ post_types as $ post_type ) { if ( in_array ( $ post_type -> name , $ ignore , true ) || 0 === strpos ( $ post_type -> name , '_pods_' ) ) { continue ; } $ data [ $ post_type -> name ] = $ post_type -> label ; } return apply_filters ( 'pods_form_ui_field_pick_data_post_types' , $ data , $ name , $ value , $ options , $ pod , $ id ) ; }
Data callback for Post Types

@param string       $name    The name of the field
@param string|array $value   The value of the field
@param array        $options Field options
@param array        $pod     Pod data
@param int          $id      Item ID

@return array

@since 2.3.0
Data callback for Post Types