• Resolved sinahosseinigst

    (@sinahosseinigst)


    I added some PHP snippets in my WordPres website.

    However, since one of the snippets calls an API to fetch data and IT TAKES A LONG TIME for the data to be fetched (too many content there), I want to delete/edit this snippet through the File Manager of Hostinger, as I can’t access to the WordPress dashboard… Any idea?

    I checked out the database, but still don’t know which table is for WPCode…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @sinahosseinigst,

    You can use the WPCode Safe Mode to get around that – when in Safe Mode, no snippets are executed.

    https://wpcode.com/docs/php-error-handling-safe-mode/#Safe_mode

    In order to start using the Safe Mode all you have to do is add the “wpcode-safe-mode” parameter to your admin url.

    For example, if your site’s admin address is:

    https://example.com/wp-admin, to access the safe mode you would visit:

    https://example.com/wp-admin/?wpcode-safe-mode=1

    Thread Starter sinahosseinigst

    (@sinahosseinigst)

    Hi there @gripgrip !
    Thanks for the fast response!

    I mean, I deactivated the plugin, and I want to edit/delete some PHP snippet that I just added using the plugin, but how to do so?

    Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @sinahosseinigst,

    The best way to do that is to reactivate the plugin and use the Safe Mode to prevent any snippets from being executed – that way you can go in to edit/deactivate the snippet directly from the admin.

    WPCode preloads active snippets in an option the wp_options table so you can go in and delete the wpcode_snippets option there and then go in and edit the snippet in the admin, the snippet source will not be affected but you need to make sure you deactivate the faulty snippet first to avoid it getting preloaded again.

    That’s why I suggested using the Safe Mode as that makes it easy to use the interface to edit the snippet.

    Thread Starter sinahosseinigst

    (@sinahosseinigst)

    Problem sovled @gripgrip !

    Thanks a lot, I went to safe mode and disabled the snippet I added!

    You saved my day!

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

The topic ‘Where does WPCode store my snippets?’ is closed to new replies.