WC_Emails::replace_placeholders( string $string )
Replace placeholder text in strings.
Description Description
Parameters Parameters
- $string
-
(Required) Email footer text.
Return Return
(string) Email footer text with any replacements done.
Source Source
File: includes/class-wc-emails.php
public function replace_placeholders( $string ) { $domain = wp_parse_url( home_url(), PHP_URL_HOST ); return str_replace( array( '{site_title}', '{site_address}', '{site_url}', '{woocommerce}', '{WooCommerce}', ), array( $this->get_blogname(), $domain, $domain, '<a href="https://woocommerce.com">WooCommerce</a>', '<a href="https://woocommerce.com">WooCommerce</a>', ), $string ); }
Changelog Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |