payment_id = (int) FWP()->helper->get_license_meta( 'payment_id' ); } function get_html() { if ( 0 < $this->payment_id ) { $output = ''; } else { $output = '
Please activate or renew your license to access support.
'; } return $output; } function get_sysinfo() { $plugins = get_plugins(); $active_plugins = get_option( 'active_plugins', [] ); $theme = wp_get_theme(); $parent = $theme->parent(); ob_start(); ?> Home URL: Payment ID: payment_id; ?> WordPress Version: Theme: get( 'Name' ) . ' ' . $theme->get( 'Version' ); ?> Parent Theme: get( 'Name' ) . ' ' . $parent->get( 'Version' ); ?> PHP Version: MySQL Version: db_version() ); ?> Web Server Info: $plugin ) { if ( in_array( $plugin_path, $active_plugins ) ) { echo $plugin['Name'] . ' ' . $plugin['Version'] . "\n"; } } $output = ob_get_clean(); $output = preg_replace( "/[ ]{2,}/", ' ', trim( $output ) ); $output = str_replace( "\n", '{n}', $output ); $output = urlencode( $output ); return $output; } }