WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17924, comment 42


Ignore:
Timestamp:
03/03/2014 11:19:07 AM (4 years ago)
Author:
landwire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17924, comment 42

    initial v1  
    55Not sure about array syntax, but basically:
    66$role[('main' => 'coach'), ('sub' => 'player'), ('sub' => 'fan')] for a player coach for instance that is mainly a coach, but also player and fan.
     7Or even:
     8$role[('main' => 'coach'), ('sub_1' => 'player'), ('custom_sub' => 'fan')] to distinguish between all roles?
    79
    810There might be better examples :)