protected function fulltextSearchInMeta( $search ) {

		$meta = new \Pressbooks\Metadata();
		$data = $meta->getMetaPostMetadata();

		foreach ( $data as $key => $haystack ) {
			// Skip anything not prefixed with pb_
			if ( ! preg_match( '/^pb_/', $key ) ) {
				continue;
			}
			if ( is_array( $haystack ) ) {
				$haystack = implode( ' ', $haystack );
			}
			if ( stripos( $haystack, $search ) !== false ) {
				return true;
			}
		}
		return false;
	}
protected function fulltextSearchInMeta( $search ) {

		$meta = new \Pressbooks\Metadata();
		$data = $meta->getMetaPostMetadata();

		foreach ( $data as $key => $haystack ) {
			// Skip anything not prefixed with pb_
			if ( ! preg_match( '/^pb_/', $key ) ) {
				continue;
			}
			if ( is_array( $haystack ) ) {
				$haystack = implode( ' ', $haystack );
			}
			if ( stripos( $haystack, $search ) !== false ) {
				return true;
			}
		}
		return false;
	}
protected function fulltextSearchInMeta ( $ search ) { $ meta = new \ Pressbooks \ Metadata ( ) ; $ data = $ meta -> getMetaPostMetadata ( ) ; foreach ( $ data as $ key => $ haystack ) { // Skip anything not prefixed with pb_ if ( ! preg_match ( '/^pb_/' , $ key ) ) { continue ; } if ( is_array ( $ haystack ) ) { $ haystack = implode ( ' ' , $ haystack ) ; } if ( stripos ( $ haystack , $ search ) !== false ) { return true ; } } return false ; }
Fulltext search all `pb_` prefixed meta keys in metadata post

@param string $search

@return bool
Fulltext search all pb_ prefixed meta keys in metadata post