Skip to content

Instantly share code, notes, and snippets.

View aydinjavadly's full-sized avatar
🎯
Focusing

Aydin Javadly aydinjavadly

🎯
Focusing
View GitHub Profile
@aydinjavadly
aydinjavadly / wp-config.php
Last active November 6, 2021 13:01
WordPress - Enable WP_DEBUG only for specific IP address.
<?php
/**
* File: wp-config.php
*
* Enable WordPress debug only for your IP address
*
* Once you know your IP address you can edit your wp-config.php file and edit the WP_DEBUG constant and replace it with this function and your IP address.
*
* NOTE: If you re-boot your router and have a dynamic IP address you will need to update your IP address in wp-config.php
*/
@aydinjavadly
aydinjavadly / wp-config.php
Last active October 30, 2021 21:41
WordPress - Change "wp-content" folder name. Change "themes" folder name. Change "plugins" folder name. Change "mu-plugins" folder name. Change "uploads" folder name. Changing the Site URL.
<?php
/**
* File: wp-config.php
*
* 1. Changing the Site URL
* 2. Change "wp-content" folder name
* 3. Change "themes" folder name
* 4. Change "plugins" folder name
* 5. Change "mu-plugins" folder name
* 6. Change "uploads" folder name
@aydinjavadly
aydinjavadly / wp-config.php
Created October 30, 2021 20:57
WordPress - Setup SSL. Prefer SSL usage for admin area.
<?php
/**
* File: wp-config.php
*
* 1. Prefer SSL usage for admin area
* 2. Check for https existence
*
*/
/** wp-config.php / Prefer SSL usage for admin area */
@aydinjavadly
aydinjavadly / wp-config.php
Created October 30, 2021 22:14
WordPress - Default security settings: X-Frame-Options Header in Wordpress. Cookie with HTTPOnly and Secure flag in Wordpress. Secure connection. Cleanup image edits. Disable plugin and theme update and installation. Disable the plugin and theme editor. Disallow unfiltered content. Disallow unfiltered uploads. Disable load scripts for prevent DD…
<?php
/**
* File: wp-config.php
*
* 1. X-Frame-Options Header in Wordpress
* 2. Cookie with HTTPOnly and Secure flag in Wordpress
* 3. Secure connection
* 4. Cleanup image edits
* 5. Disable plugin and theme update and installation
* 6. Disable the plugin and theme editor
@aydinjavadly
aydinjavadly / wp-config.php
Created October 30, 2021 22:37
WordPress - Speed up performance: Disable post revisions. Set autosave interval. Set trash days. Increasing public memory. Increasing the administrative memory. WordPress cron timeout.
<?php
/**
* File: wp-config.php
*
* 1. Disable post revisions
* 2. Set autosave interval
* 3. Set trash days
* 4. Increasing public memory
* 5. Increasing the administrative memory
* 6. WordPress cron timeout