Advertisement
eventsmanager

#_CATEGORYCOLOR override

Mar 18th, 2013
322
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('em_category_output_placeholder','my_em_placeholder_mod',1,3);
  2. function my_em_placeholder_mod($replace, $EM_Category, $result){
  3. switch( $result ){
  4. case '#_CATEGORYCOLOR':
  5. if ($EM_Category->get_color() == '#FFFFFF'){
  6. $replace = '#000000';
  7. }
  8. break;
  9. }
  10.  
  11. return $replace;
  12. }
Advertisement
RAW Paste Data Copied
Advertisement