@@ -1745,25 +1745,27 @@ public static function rop_check_reached_sharing_limit( $sharing_type = 'tw' ) {
17451745 * @return array The survey metadata.
17461746 */
17471747 public function get_survey_metadata ( $ data , $ page_slug ) {
1748- $ license_data = get_option ( 'tweet_old_post_pro_license_data ' , array () );
1748+ $ license_status = apply_filters ( 'product_rop_license_status ' , 'invalid ' );
1749+ $ license_plan = apply_filters ( 'product_rop_license_plan ' , false );
1750+ $ license_key = apply_filters ( 'product_rop_license_key ' , false );
17491751
17501752 $ install_days_number = intval ( ( time () - get_option ( 'rop_first_install_date ' , time () ) ) / DAY_IN_SECONDS );
17511753
17521754 $ data = array (
17531755 'environmentId ' => 'clwgcs7ia03df11mgz7gh15od ' ,
17541756 'attributes ' => array (
1755- 'license_status ' => ! empty ( $ license_data -> license ) ? $ license_data -> license : ' invalid ' ,
1757+ 'license_status ' => $ license_status ,
17561758 'free_version ' => $ this ->version ,
17571759 'install_days_number ' => $ install_days_number ,
17581760 ),
17591761 );
17601762
1761- if ( ! empty ( $ license_data -> plan ) ) {
1762- $ data ['attributes ' ]['plan ' ] = strval ( $ license_data -> plan );
1763+ if ( ! empty ( $ license_plan ) ) {
1764+ $ data ['attributes ' ]['plan ' ] = strval ( $ license_plan );
17631765 }
17641766
1765- if ( ! empty ( $ license_data -> key ) ) {
1766- $ data ['attributes ' ]['license_key ' ] = apply_filters ( 'themeisle_sdk_secret_masking ' , $ license_data -> key );
1767+ if ( ! empty ( $ license_key ) ) {
1768+ $ data ['attributes ' ]['license_key ' ] = apply_filters ( 'themeisle_sdk_secret_masking ' , $ license_key );
17671769 }
17681770
17691771 if ( defined ( 'ROP_PRO_VERSION ' ) ) {
0 commit comments