/** * Used to set the $_model_query_blog_id static property. * * @param int $blog_id If provided then will set the blog_id for the models to this id. If not provided then the * value for get_current_blog_id() will be used. */ public static function set_model_query_blog_id($blog_id = 0) { EEM_Base::$_model_query_blog_id = $blog_id > 0 ? (int) $blog_id : get_current_blog_id(); }