コード例 #1
0
 /**
  *    posts_join
  *
  * @access    public
  * @param string   $SQL
  * @param WP_Query $wp_query
  * @return    string
  */
 public static function posts_join($SQL = '', WP_Query $wp_query)
 {
     if (EEH_Event_Query::apply_query_filters($wp_query)) {
         // Category
         $SQL = EEH_Event_Query::posts_join_sql_for_show_expired($SQL, EEH_Event_Query::$_event_query_show_expired);
         $SQL = EEH_Event_Query::posts_join_sql_for_terms($SQL, EEH_Event_Query::$_event_query_category);
         $SQL = EEH_Event_Query::posts_join_for_orderby($SQL, EEH_Event_Query::$_event_query_orderby);
     }
     return $SQL;
 }