• Resolved tyealia

    (@tyealia)


    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
    code snippets
    10.14.2022-20.26.16

    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

    (@gripgrip)

    Hi @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

    (@gripgrip)

    Hi @tyealia,

    Please update to version 2.0.3 and the snippet you indicated should work as intended now.

    Thanks

    Thread Starter tyealia

    (@tyealia)

    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.