Title: Update Jetpack function
Last modified: July 9, 2021

---

# Update Jetpack function

 *  Resolved [Brandon Kraft](https://wordpress.org/support/users/kraftbj/)
 * (@kraftbj)
 * Code Wrangler
 * [4 years, 11 months ago](https://wordpress.org/support/topic/update-jetpack-function-2/)
 * Howdy!
 * I’m a developer over at Automattic working on Jetpack. We’re looking at removing
   some deprecated functions and see that you’re still using one: `Jetpack::is_staging_site`
   in `includes/admin/class-geodir-admin-tracker.php` L114.
 * WooCommerce has put together a good way to both utilize the newer function (from
   18 months ago) while also falling back in a graceful way to the older function
   for sites with outdated versions of Jetpack using it. You can see their approach
   at [https://github.com/woocommerce/woocommerce/blob/bcadf9d264b4be453ba8f2545d5775a7b41d68b2/includes/class-wc-tracker.php#L99-L109](https://github.com/woocommerce/woocommerce/blob/bcadf9d264b4be453ba8f2545d5775a7b41d68b2/includes/class-wc-tracker.php#L99-L109)
 * If you’d like us to hold off removing the function for a little bit of time to
   give your users time to update, please let me know. Since you have suitable checking
   to make sure the function is available (thank you!), we can remove it without
   breaking our mutual users’ sites—just your tracking will be incorrect.
 * Please let me know if you have any questions. Thank you!

Viewing 1 replies (of 1 total)

 *  [Kiran Prajapati](https://wordpress.org/support/users/kprajapatii/)
 * (@kprajapatii)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/update-jetpack-function-2/#post-14649524)
 * Hello Brandon,
 * We will update this in our next GeoDirectory release.
 * Thanks,
 * Kiran

Viewing 1 replies (of 1 total)

The topic ‘Update Jetpack function’ is closed to new replies.

 * ![](https://ps.w.org/geodirectory/assets/icon-256x256.jpg?rev=2778361)
 * [GeoDirectory - WP Business Directory Plugin and Classified Listings Directory](https://wordpress.org/plugins/geodirectory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geodirectory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geodirectory/)
 * [Active Topics](https://wordpress.org/support/plugin/geodirectory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geodirectory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geodirectory/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kiran Prajapati](https://wordpress.org/support/users/kprajapatii/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/update-jetpack-function-2/#post-14649524)
 * Status: resolved