Skip to content

feat: change the integration upsell label based on the license plan #1130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion includes/views/amazon-product-advertising-view.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
?>

<div class="fz-form-wrap">
<div class="form-block">
<div class="upgrade-alert mb-24">
<?php
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'amazonproductadvertising' ) );

$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
$content .= wp_sprintf(
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
__( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ),
Expand Down
5 changes: 4 additions & 1 deletion includes/views/openai-view.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
?>

<div class="fz-form-wrap">
<div class="form-block">
<div class="upgrade-alert mb-24">
<?php
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'openai' ) );

$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
$content .= wp_sprintf( __( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ), '<a href="' . esc_url( $upgrade_url ) . '" target="_blank">', '</a>' );
echo wp_kses_post( $content );
Expand Down
5 changes: 4 additions & 1 deletion includes/views/openrouter-view.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
?>

<div class="fz-form-wrap">
<div class="form-block">
<div class="upgrade-alert mb-24">
<?php
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'openrouter' ) );

$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
$content .= wp_sprintf( __( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ), '<a href="' . esc_url( $upgrade_url ) . '" target="_blank">', '</a>' );
echo wp_kses_post( $content );
Expand Down
19 changes: 10 additions & 9 deletions includes/views/spinnerchief-view.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
?>

<div class="fz-form-wrap">
<div class="form-block">
<div class="upgrade-alert mb-24">
<?php
echo wp_kses_post(
__( 'You\'re using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ' . wp_sprintf(
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
__( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ),
'<a target="_blank" href="' . esc_url( tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'spinnerchief' ) ) ) . '">',
'</a>'
)
);
?>
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'spinnerchief' ) );

// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
$content .= wp_sprintf( __( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ), '<a href="' . esc_url( $upgrade_url ) . '" target="_blank">', '</a>' );
echo wp_kses_post( $content );
?>
</div>
<div class="locked-form-block">
<div class="fz-form-group">
Expand Down
5 changes: 4 additions & 1 deletion includes/views/wordai-view.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<?php
$content = ! apply_filters( 'feedzy_is_license_of_type', false, 'business' ) ? __( 'Your current plan does not include support for this feature.', 'feedzy-rss-feeds' ) . ' ' : __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
?>

<div class="fz-form-wrap">
<div class="form-block">
<div class="upgrade-alert mb-24">
<?php
$upgrade_url = tsdk_translate_link( tsdk_utmify( FEEDZY_UPSELL_LINK, 'wordai' ) );

$content = __( 'You are using Feedzy Lite.', 'feedzy-rss-feeds' ) . ' ';
// translators: %1$s: opening anchor tag, %2$s: closing anchor tag.
$content .= wp_sprintf( __( 'Unlock more powerful features, by %1$s upgrading to Feedzy Pro %2$s', 'feedzy-rss-feeds' ), '<a href="' . esc_url( $upgrade_url ) . '" target="_blank">', '</a>' );

Expand Down
Loading