wpseo_display_contributors

Display a list of contributors.

Description

wpseo_display_contributors( (array) $contributors ); 

Parameters (1)

0. $contributors (array)
Contributors' data, associative by GitHub username.

Usage

  1. if ( !function_exists( 'wpseo_display_contributors' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/admin/views/about.php'; 
  3.  
  4. // Contributors' data, associative by GitHub username. 
  5. $contributors = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpseo_display_contributors($contributors); 
  9.  

Defined (1)

The function is defined in the following location(s).

/admin/views/about.php  
  1. function wpseo_display_contributors( $contributors ) { 
  2. foreach ( $contributors as $username => $dev ) { 
  3. echo '<li class="wp-person" id="wp-person-', $username, '">'; 
  4. echo '<a href="https://github.com/', $username, '" class="web"><img src="//gravatar.com/avatar/', $dev->gravatar, '?s=60" class="gravatar" alt="">', $dev->name, '</a>'; 
  5. echo '<span class="title">', $dev->role, "</span></li>\n";