This is the example I built while learning how to properly protect password before they are stored in the database. I’ve seen dozens of plugins simply take in API paramters like “username and password” and just store those values in the database for use. How horrible is that! We decided to do the right thing…
Read moreWhile migrating a website today, we ran into some issues. This issue was caused by the previous developers trying to “hide code” from the end users so that they could not move the website away from the marketing agency (very shady). Below is the PHP code we used to download a working copy of the…
Read moreHave you uploaded a theme or plugin, and then attempted to edit the files to find out there are “double line breaks” every place there should be single line breaks? It makes the files look REALLY messy huh? We have been battling this for years. Finally we decided to look closer and find a solution.…
Read moreWe have been running into this issue for a bunch of website that have no desire to show the Google map first in the sidebar. In fact, a better portion of the community wants the ad details in the sidebar! Sometimes developing websites is funny. You can spend hours of time in research and testing…
Read moreWe made an attempt to build a new function for ClassiPress over the last couple of weeks. This is the first time we have had to stop and say “its impossible to do this way”. Disappointing I know, but the real issue is simply they way WordPress stores the “sticky posts” into an array in…
Read moreEver got stuck wondering which page wordpress is actually loading? Wonder no more! Simply add this text to your functions file, save, upload and refresh. Viola, it will print the page template WordPress is trying to load so you know exactly which file to modify and bend to your every whim. add_action(‘wp_head’, ‘show_template’); function show_template()…
Read moreWant to get rid of admin bar… no, we mean REALLY get rid of it. Leave no trace of it every existing? Wishing admin-bar was never born? We have a solution for you. Below is code delivered from a code-hitman that wishes to remain anonymous. Kill your admin bar today with this code snippet: /*…
Read moreIn the past we have move and removed items from the “WordPress admin bar”. With the release of WordPress 3.3, code name Sonny, we no longer feel we need to modify the bar. Its solid implementation does exactly what we are looking for now, however, we wanted to save and mention the code that was…
Read moreIf you have been hacked, or if your trying to give yourself access to a wordpress site in which you have FTP access, often times you will want to log yourself in without having to touch the database. You can do this REALLY fast by giving yourself a “temporary backdoor”. Place the following code inside…
Read moreThe below theme snippet can be pasted into themes to allow direct, on page, login/logout and admin link called “My Profile”. Its extremely usefull and removes the need to setup and layout a seperate login page while integrating …
Read more© Copyright 2024 Sethmatics Websites All Rights Reserved.