Category: WordPress PHP


Handling Text file in PHP

After so long time, I was coding in PHP to write certain user inputs in a text file (.txt). Here are the codes that may find it helpful also. To check if text file...


Debug WordPress

WP_DEBUG is an useful debugging tool available in WordPress to see PHP errors on your website and they are helpful for developers to troubleshoot issues with the website. To turn on WP_DEBUG, add following...


PHP Isset() and Empty()

Empty() Returns False if empty() has non-empty and non-zero value. Returns True for Null, 0, “”   Isset() Returns False for Null Returns True for 0, “” or any value   Both Textareas and...


Add Javascript in WordPress Pages

WordPress defaults security feature restricts use of JavaScript into your content. However there are plenty of plugins out in WordPress that allows JavaScript within page or posts. After testing few, the most easy and workable...


wpdb last_query, last_result, last_error

There are times that you wanted to print the exact query itself or query result right after it is executed. Use following wpdb class variables to troubleshoot. $wpdb->last_query This prints that last query that is...

Thank you for visiting us. To continue receiving updates, please Subscribe to our Social Media Channels.

Menu Title