\WP_Stager_Integration\Event::get_subtitle(array $event, string|null $locale = null): string
\WP_Stager_Integration\Event::get_subtitle(array $event, string|null $locale = null): stringDescription
Gets the localized event subtitle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$event | array | Raw Stager event data. |
$locale | string|null | (Optional) The locale to use for the translation. If not provided, the current locale will be used. |
Returns:
string
Information
| File | class-event.php line 1179 |
|---|
Full Code
/**
* Gets the localized event subtitle.
*
* @param array $event Raw Stager event data.
* @param string|null $locale (Optional) The locale to use for the translation. If not provided, the current locale will be used.
*
* @return string
*/
public static function get_subtitle( $event, $locale = null ) {
return self::get_event_info_translation( 'subtitle', $event, $locale );
}💡 If you ever get stuck or have a question, please check our FAQs, our Free Integration Service, our paid Full Integration Service, or reach out to us!

Get WP Stager Integration
🎁 Limited offer: Use code WELCOME26 to get your first month for free!

