Ejemplo n.º 1
0
 /**
  * load ad groups
  */
 public function load_groups()
 {
     // load all groups
     $search = !empty($_REQUEST['s']) ? trim(wp_unslash($_REQUEST['s'])) : '';
     $args = array('taxonomy' => $this->taxonomy, 'search' => $search, 'hide_empty' => 0);
     // get wp term objects
     $terms = Advanced_Ads::get_ad_groups($args);
     // add meta data to groups
     $this->groups = $this->load_groups_objects_from_terms($terms);
 }