I’ve been looking for benchmark tests that compare preg_replace with str_replace, but none was satisfying my exact situation. My exact situation was, that once the page is completely loaded, all thousands of lines of html code, and then run that code through my function to replace the substring in it with mine. Actually converting all […]
WordPress Hacks
This page will list common WordPress hacks to get things done. Note that this page doesn’t list any hack for malicious activities, rather to make the life of legit owners easier. How to make yourself admin via ftp If you have ftp access to the wordpress files only, first of all find your user id […]
JavaScript Tips
This post will be updated with various javascript related tips which are not extensive enough to have their own post. How to Select any element and change its any property You can access any element using javascript by calling it through its different attributes, in various ways, like: document.getElementsByName(‘yourname’)[0]; // adding zero means the first one […]
PHPMailer – Tips and fixes
This post will cover various common issues encountered with PHPMailer and how to resolve them. It will also include various tips to improve its usage. I will keep updating this post with content related to PHPMailer as it comes along. Set different but single reply-to email address You can provide a different reply-to address to […]
KISS code
I’ve seen numerous people, doing simple things in amazingly complex way! As they say, programming is not typing, it’s thinking. Maybe it’s hard to think for a few minutes instead of coding for many more minutes over the same thing, in a bad way? In this article, I’ll keep adding some KISS (Keep It Simple […]
Gravity forms tricks
Gravity forms is an amazing plugin itself, however there are always some situations when we don’t have the built-in functionality for what we need. Here we will discuss how to hack gravity forms plugin for WordPress as per our own needs in various situations. This article will keep updating as we get more hacks into it. […]
Customizing Awesome Support WordPress plugin
This posts lists different issues with awesome support plugin and how to fix them. We’re working on versionL 3.2.9. For any code edits, I recommend making copy of your currently working state of plugin or wordpress as a whole in fact (with all files and database). Also, it’s better to comment the old code and […]
Sort custom column date in custom post type
This post is to simply include the code required to create a sortable date column in a custom post type. I was working with awesome support plugin and had to do several modifications to it. One of that required us to have a custom column for publish date of the post including the time of […]
WordPress Taxonomies
Taxonomies are a very powerful but less understood and less used feature of WordPress. In this post, I’ll gather different topics related to WordPress taxonomies, solving issues and solutions to different situations. How to get value of specific custom taxonomy for current post To get the value of specific taxonomy for current post, we’ll use […]
HTML2PDF issues
I was working with one of the clients site where the invoices were being converted to a pdf using mpdf library. However, as usual, there were errors encountered, so I decided to make a post related to html to pdf conversion errors and compile all the html2pdf errors in one place. This list will keep […]