2
0

🐛 (wp) Fix custom api host variable name on shortcode

Closes #483
This commit is contained in:
Baptiste Arnaud
2023-05-05 09:17:47 -04:00
parent 8347e5b2a8
commit c0fae18501
5 changed files with 12 additions and 9 deletions

View File

@ -90,8 +90,8 @@ class Typebot_Public
if (array_key_exists('typebot', $attributes)) {
$typebot = sanitize_text_field($attributes['typebot']);
}
if (array_key_exists('apiHost', $attributes)) {
$api_host = sanitize_text_field($attributes['apiHost']);
if (array_key_exists('host', $attributes)) {
$api_host = sanitize_text_field($attributes['host']);
}
if (!$typebot) {
return;