Title: Migrating from snippets plugin 1 snippet doesent work
Last modified: October 15, 2022

---

# Migrating from snippets plugin 1 snippet doesent work

 *  Resolved [tyealia](https://wordpress.org/support/users/tyealia/)
 * (@tyealia)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/migrating-from-snippets-plugin-1-snippet-doesent-work/)
 * Migrating from the snippets plugin, all 6 snippets migrated over worked perfectly.
   One refuses to work with your plugin. I have checked everything is the same as
   snippets plugin, PHP selected run everywhere selected, but it does nothing unlike
   the other plugin where it works without issue – seems like a bug
 * add_action( ‘after_setup_theme’, ‘tu_remove_page_featured_image’ );
    function
   tu_remove_page_featured_image() { remove_action( ‘generate_after_header’, ‘generate_featured_page_header’,
   10 ); }
 * Wpcode
    [⌊10.14.2022-20.26.01⌉](https://www.screencast.com/t/oZ9voUfQNyZv) code
   snippets [⌊10.14.2022-20.26.16⌉](https://www.screencast.com/t/YNdUBbYfbkr)
 * I make sure one is off before I test the other, they are never on at the same
   time.

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

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/migrating-from-snippets-plugin-1-snippet-doesent-work/#post-16104754)
 * Hi [@tyealia](https://wordpress.org/support/users/tyealia/),
 * Thank you for the detailed example. This is happening because WPCode loads the
   PHP snippets for execution on a later hook.
    We are going to adjust that in the
   next release so that we’ll load the snippets earlier & allow more flexibility
   in the hooks that you can use.
 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/migrating-from-snippets-plugin-1-snippet-doesent-work/#post-16105012)
 * Hi [@tyealia](https://wordpress.org/support/users/tyealia/),
 * Please update to version 2.0.3 and the snippet you indicated should work as intended
   now.
 * Thanks
 *  Thread Starter [tyealia](https://wordpress.org/support/users/tyealia/)
 * (@tyealia)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/migrating-from-snippets-plugin-1-snippet-doesent-work/#post-16107420)
 * Issue solved! Thank you!

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

The topic ‘Migrating from snippets plugin 1 snippet doesent work’ is closed to new
replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [tyealia](https://wordpress.org/support/users/tyealia/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/migrating-from-snippets-plugin-1-snippet-doesent-work/#post-16107420)
 * Status: resolved