classes/fields/pick.php
public function related_objects( $force = false ) {

		if ( $this->setup_related_objects( $force ) || null === self::$names_related ) {
			$related_objects = array();

			foreach ( self::$related_objects as $related_object_name => $related_object ) {
				if ( ! isset( $related_objects[ $related_object['group'] ] ) ) {
					$related_objects[ $related_object['group'] ] = array();
				}

				$related_objects[ $related_object['group'] ][ $related_object_name ] = $related_object['label'];
			}

			self::$names_related = (array) apply_filters( 'pods_form_ui_field_pick_related_objects', $related_objects );
		}

		return self::$names_related;

	}
public function related_objects( $force = false ) {

		if ( $this->setup_related_objects( $force ) || null === self::$names_related ) {
			$related_objects = array();

			foreach ( self::$related_objects as $related_object_name => $related_object ) {
				if ( ! isset( $related_objects[ $related_object['group'] ] ) ) {
					$related_objects[ $related_object['group'] ] = array();
				}

				$related_objects[ $related_object['group'] ][ $related_object_name ] = $related_object['label'];
			}

			self::$names_related = (array) apply_filters( 'pods_form_ui_field_pick_related_objects', $related_objects );
		}

		return self::$names_related;

	}
public function related_objects ( $ force = false ) { if ( $ this -> setup_related_objects ( $ force ) || null === self :: $ names_related ) { $ related_objects = array ( ) ; foreach ( self :: $ related_objects as $ related_object_name => $ related_object ) { if ( ! isset ( $ related_objects [ $ related_object [ 'group' ] ] ) ) { $ related_objects [ $ related_object [ 'group' ] ] = array ( ) ; } $ related_objects [ $ related_object [ 'group' ] ] [ $ related_object_name ] = $ related_object [ 'label' ] ; } self :: $ names_related = ( array ) apply_filters ( 'pods_form_ui_field_pick_related_objects' , $ related_objects ) ; } return self :: $ names_related ; }
Return available related objects

@param boolean $force Whether to force refresh of related objects.

@return array Field selection array
@since 2.3.0
Return available related objects