Re: Excluding certain blogs from bp_has_site_blogs() function
Hi there,
How can I pass the excluded blogs values as an argument:
Like my_has_site_blogs( 'type=random&max=100&exclude=1,2,3' )
instead of declaring it.
$my_excluded = array('1','15','16','17','18','19','20','21');
foreach ($this->blogs['blogs'] as $key => $value){
if (in_array($value->blog_id, $my_excluded)){
unset($this->blogs['blogs'][$key]);
$this->blogs['total'] = ((int)$this->blogs['total'])-1;
}
}
$this->blogs['blogs'] = array_merge( array(), $this->blogs['blogs'] );
thank you…