I seldom use the Settings API for building my plugins admin pages because I love to be in control of layout and design.
When the form for configuring my plugin is saved successfully or an error occurred, I usually add a query parameter to the page URL handy in displaying an admin notice to that effect.
WordPress 4.2 release included a nifty feature that removes query parameters handy in displaying admin notices.…
A need to convert a jQuery object to native DOM element may arise in your future project and the conversion is easy as calling
get() method on the object likes so:
When you clone a Git repository with the
git clone command like so:
git clone https://github.com/collizo4sky/WP_List_Table-Class-Plugin-Example.git
The content of the repo will be downloaded or cloned into a
WP_List_Table-Class-Plugin-Example (repository name) folder.
This might not be your expected behavior. An example of what your expection might be is for the content of the Git repository to be cloned into your current directory or to a named folder in the current directory.…
The use of PHP4 style constructors to create widgets in WordPress was officially deprecated in version 4.3. As a result, the following error notice will be displayed in your site if
WP_DEBUG constant in
wp-config.php is set to true.
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
In this tutorial, I will show us how to replace the old PHP 4 constructor with PHP 5+ magic constructor method in your website’s widgets code.…
Avira has been my antivirus of choice for a long time now.
These past few days, I was constantly bugged by its automatic updates (auto-update) and the subsequent dialog box appearance to reboot my computer after the update has successfully been downloaded.
Admittedly, I found it obnoxious and intrusive, thus I had to find a way to deactivate the update.
Mind you, there is no option in Avira to disable auto update.…
Assuming you occasionally work on a side project every evening after work versioned by Git and saved to a remote repository such as GitHub, Bitbucket or GitLab.
And on one glorious day at work, your lunch break was extended by an hour or two. In order not to waste the time, you decided to continue working on your side project.
To download the source code to the computer you use at work, you cloned the repo like so:
git clone https://github.com/username/side-project.git
git clone is done, only the master branch gets downloaded.…