Skip to content

Instantly share code, notes, and snippets.

@burstofcode
burstofcode / wp-config.php
Created December 2, 2017 20:41
There are two things to understand when uninstalling or removing WooCommerce. * If you deactivate and delete the plugin from WordPress, you only remove the plugin and its files. Your settings, orders, products, pages, etc… will still exist in the database. * If you need to remove ALL WooCommerce data, including products, order data, etc., you ne…
<?php
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Open your site’s wp-config file and add
* define( 'WC_REMOVE_ALL_DATA', true);
* on its own line above the
* That’s all, stop editing! Happy blogging. line.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
define( 'WC_REMOVE_ALL_DATA', true);
@burstofcode
burstofcode / block-files.php
Last active November 5, 2017 07:54
01. salts.php 02. wp-config-db.php 03. hide-errors.php 04. turn-off-editor.php 05. block-files.php 06. hide-wp-version.php 07. login-passwd.php 08. xmlrpc-off.php 09. wpadmin-restrict.php 10. secure-logins.php 11. wpincludes-restrict.php 12. wpcontent-restrict.php SOURCE: http://wpmagus.pl/pliki/prezentacje/wyczaruj-sobie-spokoj/
// .htaccess
<?php
// =========================================================================
// BLOCK IMPORTANT FILES FROM VIEWING
// =========================================================================
<FilesMatch "wp-config.*\.php|\.htaccess|readme\.html">
Order allow,deny