/** * Overrides default update message format with "renew your license" message. * * @author Vova Feldman (@svovaf) * @since 1.1.6 */ function edit_and_echo_plugin_update_row($file, $plugin_data) { $plugin_update_row = ob_get_clean(); $current = get_site_transient('update_plugins'); if (!isset($current->response[$file])) { echo $plugin_update_row; return false; } $r = $current->response[$file]; $plugin_update_row = preg_replace('/(\\<div.+>)(.+)(\\<a.+\\<a.+)\\<\\/div\\>/is', '$1 $2 ' . sprintf(__fs('renew-license-now'), '<a href="' . $this->_fs->pricing_url() . '">', '</a>', $r->new_version) . '$4', $plugin_update_row); echo $plugin_update_row; }