• Hello

    As title said, I’m wondering if is it possible to disable this feature and get back to the old behavior when saving a snippet (refreshing the page). I have a bunch of “execute once” snippets, on those snippets, I review the output of them by quickly echoing to the admin footer with admin_footer hook. When I click “save changes and execute once button” the snippet used to execute and page refreshesed now with the output on the admin footer. I know it may not be the best solution for this, but it just worked for me. But now with the ajax save I can’t longer view the outputs I need this way.

    So I’m wondering if is possible disable ajax and get back to the old behavior when saving a snippet. In case not, is it possible to downgrade the plugin without breaking it or risk of losing data until I rewrite my snippets to print their output in another way?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi @lucario24,

    Currently no, we removed the older method in favour of using AJAX for the actions.

    I think I do agree that it makes sense to reload the page when running execute once snippets though, instead of just performing the save through AJAX. Would that address your concerns?

    To answer your other question, there’s no risk of data loss when downgrading to v3.3, though we encourage upgrading to the latest version when possible to ensure you don’t miss out on security patches and fixes.

    • This reply was modified 1 year, 8 months ago by Shea Bunge.
    Plugin Contributor Verdi Heinz

    (@ver3)

    @lucario24 If you still want to answer the question or reach out to us directly, please do so here. We’ll be happy to help! https://snipco.de/help

    Plugin Author Shea Bunge

    (@bungeshea)

    Just an update for you @lucario24 – we are indeed working on a setting for disabling AJAX saving behaviour. We should hopefully have a patch ready soon.

    Thread Starter lucario24

    (@lucario24)

    @bungeshea That’s great news!, I had to downgrade the plugin to keep running my snippets the way I need. When can I expect the patch to be ready?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is it possible to disable AJAX on snippet save?’ is closed to new replies.