Skip to content

Instantly share code, notes, and snippets.

View brandonhimpfen's full-sized avatar
:octocat:

Brandon Himpfen brandonhimpfen

:octocat:
View GitHub Profile
@brandonhimpfen
brandonhimpfen / gist:7727310
Created December 1, 2013 00:57
Set WordPress Memory Limit - add to your wp-config.php
define( 'WP_MEMORY_LIMIT', '32M' );
@brandonhimpfen
brandonhimpfen / gist:7727303
Created December 1, 2013 00:57
Add Cookies to WordPress - add to your wp-config.php
define ( 'COOKIE_DOMAIN', '.yourdomain.com' );
define ( 'COOKIEPATH', '/' );
define ( 'SITECOOKIEPATH', '/' );
@brandonhimpfen
brandonhimpfen / gist:7727297
Created December 1, 2013 00:55
Save your FTP Information in WordPress
define ( 'FTP_USER', 'username' );
define ( 'FTP_PASS', 'password' );
define ( 'FTP_HOST', 'ftp.yourdomain.com:21' );
@brandonhimpfen
brandonhimpfen / gist:7727291
Created December 1, 2013 00:55
Override Default Directory Permissions in WordPress
define( 'FS_CHMOD_DIR', 0755 );
@brandonhimpfen
brandonhimpfen / gist:7727281
Created December 1, 2013 00:54
Override Default File Permissions in WordPress
define( 'FS_CHMOD_FILE', 0644 );
@brandonhimpfen
brandonhimpfen / gist:7727277
Created December 1, 2013 00:54
Enable WordPress Caching
define( 'WP_CACHE', true );
@brandonhimpfen
brandonhimpfen / gist:7727275
Created December 1, 2013 00:54
Meta Refresh - add in between your <head></head> tags - change 5 to the amount of seconds you want
<meta http-equiv="refresh" content="5;url=http://example.com/" />
@brandonhimpfen
brandonhimpfen / gist:7727270
Created December 1, 2013 00:53
Force the WordPress Login to use SSL
define( 'FORCE_SSL_LOGIN', true );
@brandonhimpfen
brandonhimpfen / gist:7727268
Created December 1, 2013 00:52
Force All WordPress Admin Pages to use SSL
define( 'FORCE_SSL_ADMIN', true );
@brandonhimpfen
brandonhimpfen / gist:7727265
Created December 1, 2013 00:52
Empty the Trash Bin Every X Days in WordPress
define( 'EMPTY_TRASH_DAYS', 7 );