diff --git a/README.txt b/README.txt index ff2482a..93cda19 100644 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: sailthru-wp Tags: personalization, email, Requires at least: 5.5 Tested up to: 5.7 -Stable tag: 4.2.0 +Stable tag: 4.3.0 Provides an integration with Sailthru diff --git a/changelog.md b/changelog.md index 086d335..ceeb00d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## v4.3.0 (2021-09-01) +Added filter for content vars + ## v4.2.0 (2021-07-06) Added post object to sailthru_horizon_meta_tags filter diff --git a/classes/class-sailthru-content.php b/classes/class-sailthru-content.php index 76907bf..681ff1c 100644 --- a/classes/class-sailthru-content.php +++ b/classes/class-sailthru-content.php @@ -340,7 +340,7 @@ function generate_payload( $post, $post_id ) { // Add the vars $data['vars'] = $this->generate_vars( $post->ID, $post ); - + $data['vars'] = apply_filters( 'sailthru_content_vars', $data['vars'], $post); return $data; } diff --git a/plugin.php b/plugin.php index 66d7f68..919cd1c 100644 --- a/plugin.php +++ b/plugin.php @@ -3,7 +3,7 @@ Plugin Name: Sailthru for WordPress Plugin URI: http://sailthru.com/ Description: Add the power of Sailthru to your WordPress set up. -Version: 4.2.0 +Version: 4.3.0 Requires at least: 5.5 Author: Sailthru Author URI: http://sailthru.com @@ -36,7 +36,7 @@ * @var const $version The current version of the plugin. */ if ( ! defined( 'SAILTHRU_PLUGIN_VERSION' ) ) { - define( 'SAILTHRU_PLUGIN_VERSION', '4.2.0' ); + define( 'SAILTHRU_PLUGIN_VERSION', '4.3.0' ); } if ( ! defined( 'SAILTHRU_PLUGIN_PATH' ) ) {