Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created July 22, 2019 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancameron/f61f8e4431ae15c07c665ad13bd59a50 to your computer and use it in GitHub Desktop.
Save dancameron/f61f8e4431ae15c07c665ad13bd59a50 to your computer and use it in GitHub Desktop.
Customization Based on Client Type
<?php // don't include this line in your functions.php, since it already starts with it.
switch ( SI_Client_Categories::get_client_type( si_get_client_id() ) ) {
case 'client-type-slug1':
"do something";
break;
case 'client-type-slug2':
"do something for this slug";
break;
default:
// do nothing
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment