Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: image link in a plugin folder – dev question


nit3watch
Participant

@nit3watch

@r-a-y last thing, Ive changed my mind a bit when it comes to the options. How could I get it to check the values seperated by a ,

Say the db field ready: one,two
The thing is it might read “one,three” or “two,four” so there should be a way for it to check separating it by a comma? Other wise I would have to type out all the instances that might occur..
// check which option is in the db
$group_card = groups_get_groupmeta( $group->id, 'gcard_group_card' );
if ($group_card == 'one'){
$group_card = gcard_one();
}
if ($group_card == 'two'){
$group_card = gcard_two();
}
return apply_filters( 'gcard_get_group_card', $group_card );
}

Skip to toolbar