src/class-extended-cpt-admin.php
protected function p2p_connection_exists( string $connection ) : bool {
		if ( ! isset( $this->connection_exists[ $connection ] ) ) {
			$this->connection_exists[ $connection ] = p2p_connection_exists( $connection );
		}
		return $this->connection_exists[ $connection ];
	}
protected function p2p_connection_exists( string $connection ) : bool {
		if ( ! isset( $this->connection_exists[ $connection ] ) ) {
			$this->connection_exists[ $connection ] = p2p_connection_exists( $connection );
		}
		return $this->connection_exists[ $connection ];
	}
protected function p2p_connection_exists ( string $ connection ) : bool { if ( ! isset ( $ this -> connection_exists [ $ connection ] ) ) { $ this -> connection_exists [ $ connection ] = p2p_connection_exists ( $ connection ) ; } return $ this -> connection_exists [ $ connection ] ; }
Check if a certain Posts 2 Posts connection exists.

This is just a caching wrapper for `p2p_connection_exists()`, which performs a
database query on every call.

@param string $connection A connection type.
@return bool Whether the connection exists.
Check if a certain Posts 2 Posts connection exists .