Skip to content

Commit

Permalink
Merge pull request #102 from sailthru/CHA-456-Content_Var_Filter
Browse files Browse the repository at this point in the history
[CHA-456] Added filter for content vars
  • Loading branch information
rzsouza-st authored Sep 1, 2021
2 parents 0fedff6 + 17e1e44 commit 4920b39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion classes/class-sailthru-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' ) ) {
Expand Down

0 comments on commit 4920b39

Please sign in to comment.