Debugging and Error Logging in WordPress

So most servers do error logging but if you want to improve this functionality you can modify your wp-config.php file with the following code snippet.  It consolidates not only the PHP errors but also logs any WordPress bugs that get reported via WordPress debugging...

Disable PHP File Execution via .htaccess

Here is the code that you can put in your .htaccess file within a folder to disable php file execution.  It is very useful in the WordPress's wp-content/uploads directory for making sure files that get uploaded are not executable. Stop PHP File Execution <Files...

Divi Child Theme

Click Here to download the Divi-child.zip file.  The following are the code snippets for the respective files so you can recreate them yourself.  The functions file includes the style.css files from both the parent and child theme. It also gets the current time stamp...

Email Function

Email File Implementation PHP emailFile(array( 'to' => 'your@email.com', 'from' => 'my@email.com', 'subject' => 'Some Subject', 'message' => '<b>Hello!</b>', 'plain ' => 'Get a new email client!', 'file' => '/path/to/file' )); 12345678...

Encrypt and Decrypt Functionality

So there are times that I am in the need to encrypt data with the capability of decryption afterwards so md5 is not capable for me to use. Encrypt Decrypt Capability $data = "Data to encrypt."; $encryption_key = md5( $pass ); $encrypted_data = encrypt( $data,...