@ -78,7 +78,7 @@ const parseWordpressShortcode = ({
|
|||||||
return `[typebot typebot="${publicId}"${
|
return `[typebot typebot="${publicId}"${
|
||||||
isCloudProdInstance
|
isCloudProdInstance
|
||||||
? ''
|
? ''
|
||||||
: ` apiHost="${env('VIEWER_INTERNAL_URL') ?? getViewerUrl()}"`
|
: ` host="${env('VIEWER_INTERNAL_URL') ?? getViewerUrl()}"`
|
||||||
}${width ? ` width="${width}"` : ''}${height ? ` height="${height}"` : ''}]
|
}${width ? ` width="${width}"` : ''}${height ? ` height="${height}"` : ''}]
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@typebot.io/wordpress",
|
"name": "@typebot.io/wordpress",
|
||||||
"version": "3.1.9",
|
"version": "3.1.10",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "https://github.com/baptisteArno/typebot.io",
|
"repository": "https://github.com/baptisteArno/typebot.io",
|
||||||
"author": "baptisteArno",
|
"author": "baptisteArno",
|
||||||
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"deploy": "pnpm copy && pnpm commit",
|
"deploy": "pnpm copy && pnpm commit",
|
||||||
"copy": "svn copy ./trunk ./tags/3.1.9",
|
"copy": "svn copy ./trunk ./tags/3.1.10",
|
||||||
"commit": "svn ci -m 'Fix wordpress user prefill variables with shortcode'"
|
"commit": "svn ci -m 'Fix custom variable host'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ Requires at least: 5.0
|
|||||||
Tested up to: 6.0
|
Tested up to: 6.0
|
||||||
License: GPL 2.0
|
License: GPL 2.0
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
||||||
Stable Tag: 3.1.9
|
Stable Tag: 3.1.10
|
||||||
|
|
||||||
== Description ==
|
== Description ==
|
||||||
Collect 4x more responses with conversational apps using Typebot.
|
Collect 4x more responses with conversational apps using Typebot.
|
||||||
@ -24,6 +24,9 @@ This plugin relies on Typebot which is a tool that allows you to create conversa
|
|||||||
3. Activate your Typebot with the "Typebot" admin button located in the sidebar
|
3. Activate your Typebot with the "Typebot" admin button located in the sidebar
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
= 3.1.10 =
|
||||||
|
* Fix custom apiHost variable name
|
||||||
|
|
||||||
= 3.1.8 =
|
= 3.1.8 =
|
||||||
* Fix forward wp user variable when not initialized
|
* Fix forward wp user variable when not initialized
|
||||||
|
|
||||||
|
@ -90,8 +90,8 @@ class Typebot_Public
|
|||||||
if (array_key_exists('typebot', $attributes)) {
|
if (array_key_exists('typebot', $attributes)) {
|
||||||
$typebot = sanitize_text_field($attributes['typebot']);
|
$typebot = sanitize_text_field($attributes['typebot']);
|
||||||
}
|
}
|
||||||
if (array_key_exists('apiHost', $attributes)) {
|
if (array_key_exists('host', $attributes)) {
|
||||||
$api_host = sanitize_text_field($attributes['apiHost']);
|
$api_host = sanitize_text_field($attributes['host']);
|
||||||
}
|
}
|
||||||
if (!$typebot) {
|
if (!$typebot) {
|
||||||
return;
|
return;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/**
|
/**
|
||||||
* Plugin Name: Typebot
|
* Plugin Name: Typebot
|
||||||
* Description: Convert more with conversational forms
|
* Description: Convert more with conversational forms
|
||||||
* Version: 3.1.9
|
* Version: 3.1.10
|
||||||
* Author: Typebot
|
* Author: Typebot
|
||||||
* Author URI: http://typebot.io/
|
* Author URI: http://typebot.io/
|
||||||
* License: GPL-2.0+
|
* License: GPL-2.0+
|
||||||
@ -16,7 +16,7 @@ if (!defined('WPINC')) {
|
|||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
define('TYPEBOT_VERSION', '3.1.9');
|
define('TYPEBOT_VERSION', '3.1.10');
|
||||||
|
|
||||||
function activate_typebot()
|
function activate_typebot()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user