You appear to be a bot. Output may be restricted
Description
Find all contributors with a specific role.
Usage
$Genesis_Contributor[] = Genesis_Contributors::find_by_role( $role );
Parameters
- $role
- ( string ) required – Role to find contributors by.
Returns
Genesis_Contributor[]
Source
File name: genesis/lib/classes/class-genesis-contributors.php
Lines:
1 to 11 of 11
public function find_by_role( $role ) { $people = []; foreach ( $this->people as $key => $person ) { if ( $role === $person->get_role() ) { $people[ $key ] = $person; } } return $people; }