File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1767,6 +1767,15 @@ private function setup_wizard_subscribe_process() {
1767
1767
}
1768
1768
if ( $ with_subscribe && is_email ( $ email ) ) {
1769
1769
update_option ( 'feedzy_rss_feeds_logger_flag ' , 'yes ' );
1770
+
1771
+ $ extra_data = array (
1772
+ 'segment ' => $ segment ,
1773
+ );
1774
+
1775
+ if ( ! empty ( $ integrate_with ) ) {
1776
+ $ extra_data ['integration_scope_onboarding ' ] = $ integrate_with ;
1777
+ }
1778
+
1770
1779
$ request_res = wp_remote_post (
1771
1780
FEEDZY_SUBSCRIBE_API ,
1772
1781
array (
@@ -1781,9 +1790,7 @@ private function setup_wizard_subscribe_process() {
1781
1790
'slug ' => 'feedzy-rss-feeds ' ,
1782
1791
'site ' => home_url (),
1783
1792
'email ' => $ email ,
1784
- 'data ' => array (
1785
- 'segment ' => $ segment ,
1786
- ),
1793
+ 'data ' => $ extra_data
1787
1794
)
1788
1795
),
1789
1796
)
You can’t perform that action at this time.
0 commit comments