\WP_Stager_Integration\Event::get_text_html(array $event, string|null $locale = null): string
\WP_Stager_Integration\Event::get_text_html(array $event, string|null $locale = null): stringDescription
Gets the localized event text as HTML.
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 1205 |
|---|
Full Code
/**
* Gets the localized event text as HTML.
*
* @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_text_html( $event, $locale = null ) {
return self::get_event_info_translation( 'textHtml', $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!

