Title: wp_credits_section_title
Published: November 12, 2019
Last modified: May 20, 2026

---

# wp_credits_section_title( array $group_data = array() )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#wp--skip-link--target)

Displays the title for a given group of contributors.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#parameters)󠁿

 `$group_data`arrayoptional

The current contributor group.

Default:`array()`

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#source)󠁿

    ```php
    function wp_credits_section_title( $group_data = array() ) {
    	if ( ! count( $group_data ) ) {
    		return;
    	}

    	if ( $group_data['name'] ) {
    		if ( 'Translators' === $group_data['name'] ) {
    			// Considered a special slug in the API response. (Also, will never be returned for en_US.)
    			$title = _x( 'Translators', 'Translate this to be the equivalent of English Translators in your language for the credits page Translators section' );
    		} elseif ( isset( $group_data['placeholders'] ) ) {
    			// phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
    			$title = vsprintf( translate( $group_data['name'] ), $group_data['placeholders'] );
    		} else {
    			// phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
    			$title = translate( $group_data['name'] );
    		}

    		echo '<h2 class="wp-people-group-title">' . esc_html( $title ) . "</h2>\n";
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/credits.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/credits.php#L93)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/credits.php#L93-L112)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#related)󠁿

| Uses | Description | 
| [translate()](https://developer.wordpress.org/reference/functions/translate/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [_x()](https://developer.wordpress.org/reference/functions/_x/)`wp-includes/l10n.php` |

Retrieves translated string with gettext context.

  | 
| [esc_html()](https://developer.wordpress.org/reference/functions/esc_html/)`wp-includes/formatting.php` |

Escaping for HTML blocks.

  |

[Show 1 more](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_credits_section_title/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.3.0](https://developer.wordpress.org/reference/since/5.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_credits_section_title%2F)
before being able to contribute a note or feedback.