/** * Creates or returns an instance of this class. * * @since 2.3.0 * * @return Theme_Blvd_Query A single instance of this class. */ public static function get_instance() { if (self::$instance == null) { self::$instance = new self(); } return self::$instance; }
/** * Verify the state of the original query. * * @since 2.3.0 * * @param string $type The primary type of WP page being checked for * @param string $helper A secondary param if allowed with $type * @return bool */ function themeblvd_was($type, $helper = '') { $query = Theme_Blvd_Query::get_instance(); return $query->was($type, $helper); }