Add support for [site:title] and [site:homepage_link]

These will add support for these two shortcodes in the Shortcode engine

MAILPOET-4599
This commit is contained in:
Oluwaseun Olorunsola
2022-10-19 13:29:24 +01:00
committed by Aschepikov
parent 80f22c5b50
commit f92ee90e9b
5 changed files with 59 additions and 1 deletions

View File

@@ -111,6 +111,16 @@ class ShortcodesHelper {
),
],
],
__('Site', 'mailpoet') => [
[
'text' => __('Site title', 'mailpoet'),
'shortcode' => '[site:title]',
],
[
'text' => __('Homepage link', 'mailpoet'),
'shortcode' => '[site:homepage_link]',
],
],
];
$customFields = $this->getCustomFields();
if (count($customFields) > 0) {