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. $data = “Data to encrypt.”; $encryption_key = md5( $pass ); $encrypted_data = encrypt( $data, $encryption_key );...

Enqueuing jQuery for WordPress Theme

Here is the function to add jQuery to the front end of the site.  You just need to enqueue the script labeled jquery. if (!is_admin()) add_action(“wp_enqueue_scripts”, “default_jquery_enqueue”, 11); function default_jquery_enqueue() {...

Fedex Tracking Api Using PHP

So I was trying to track down the way to use the FedEx API and Developer Tools to get tracking information.  Found the API's Documentation a little hard to follow but thankfully I came across an article that gave a nice sample script.  Thank you for providing the...

Get Contents via cURL

So I have ran into an issue where a site was using URL's in the file_get_contents function and stopped working on the server.  This was also an issue if anyone was trying to do a URL include within a require() or an include(). Here was a solution that I found that...

Give View Entry access to a WordPress Role

So I came across this snippet of code recently when I was trying to find a way to give a user access to a form's entries based on a user role.  I did find that I needed to modify it a little bit for the menu side of things so that when you go to the view entries page...