Title: Code snippets stopped working
Last modified: October 19, 2022

---

# Code snippets stopped working

 *  Resolved [jacobreimann](https://wordpress.org/support/users/jacobreimann/)
 * (@jacobreimann)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/code-snippets-stopped-working/)
 * I have code snippets installed and it was working fine until a recent update –
   I think it was a theme update but not sure.
 * I have the snippet
 * remove_theme_support( ‘wc-product-gallery-zoom’ );
 * installed and live but you can see from the link that it has stopped working.
 * How can I find out what could be stopping this working?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-snippets-stopped-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/code-snippets-stopped-working/#post-16116851)
 * If a theme update broke your snippet, then it seems like something has changed
   in how that theme does things. Possibly it no longer uses that feature, or possibly
   it just registers it at a different moment in the WordPress load order.
 * As a start, you could try just registering theme support on a later hook:
 *     ```
       add_action( 'after_setup_theme', function () {
           add_theme_support( 'wc-product-gallery-zoom' );
       }, 200 );
       ```
   
 *  Thread Starter [jacobreimann](https://wordpress.org/support/users/jacobreimann/)
 * (@jacobreimann)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/code-snippets-stopped-working/#post-16121253)
 * Hi Shea.
 * Awesome that works thanks
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/code-snippets-stopped-working/#post-16121985)
 * Glad to hear it!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Code snippets stopped working’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/code-snippets-stopped-working/#post-16121985)
 * Status: resolved