Skip to content

Commit

Permalink
New filter conversions_single_feature_media
Browse files Browse the repository at this point in the history
  • Loading branch information
jjs2484 committed May 16, 2021
1 parent c92dfa2 commit f4b7410
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions homepage/sections/single_feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ public function single_feature_content() {
}
}

if ( has_filter( 'conversions_single_feature_media' ) ) {
$single_feature_media = apply_filters( 'conversions_single_feature_media', $single_feature_media );
}

if ( ! empty( $single_feature_media ) ) {
echo $single_feature_media; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Many of the homepage sections can also be output outside the homepage using shor
* Update: NPM Dependencies.
* New: Action hook conversions_before_icon_features_section.
* New: Action hook conversions_after_icon_features_section.
* New: Filter conversions_single_feature_media.

= 1.8.2 =
* New: Action hook conversions_hero_full_after_content.
Expand Down

0 comments on commit f4b7410

Please sign in to comment.