Disable “automatically deactivated” feature? | WordPress.org

[ad_1]

Hi @thegrbteam,

Thank you – we’re happy to hear you like the plugin.

You can disable the automatic disabling of snippets using the filter wpcode_error_locations_auto_disable.

This allows you to specify for which auto-insert locations a snippet should be automatically disabled if it encounters an error.

You can use the following code to prevent automatic disabling for all snippets:

add_filter( 'wpcode_error_locations_auto_disable', '__return_empty_array' );

Please note that adding this filter using a WPCode snippet might not always work as intended unless this is the first snippet loaded (you can use a lower priority number).

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer