How to Replace BuddyPress Avatar with a Custom One

So i received a question from a customer over at ProfilePress if it was possible for avatars or profile pictures uploaded by users of his website via ProfilePress powered front-end registration and edit profile forms to automatically replace that of BuddyPress.…

How to Make WordPress Admin Notices Actually Dismissible

WordPress Admin Notices

WordPress 4.2 introduced a feature where admin notices can now be dismissed / removed from the admin page currently being viewed.

One caveat I discovered was, the dismissal do not persist across pages. That is, when you reload or navigate away from the current admin page to another, you will still see the notice.

I wrote a small library / plugin that elegantly solves this problem which i will be sharing to us.…

WordPress Customizer – Range Control with Selected Value Indicator

WordPress Customizer

The WordPress customizer, formerly know as theme customizer allows administrator(s) and/or owner to customize and control the appearance of their WordPress powered website via an intuitive, click-and-drag interface.

The Customization API allows theme and plugin developers to customize and add controls to the “Appearance” → “Customize” admin screen.

In this tutorial, I won’t go over the steps on how to leverage or integrate customizer in your theme or plugin.…

How to Fix SVN Error “The HTTP method ‘MKCOL’ is not allowed on …”

SVN logo

I ran into the following error while trying to svn commit the code of this plugin to WordPress plugin repository.

The HTTP method ‘MKCOL’ is not allowed on …

Got to discover via this stackoverflow thread that the error was as a result of me trying to add or push a directory that already existed in the SVN repository.

Wheew!…

How to Clean up URL Query Arguments in WordPress Settings Pages

How To Build a Social Media Profile Widget in WordPress

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.…

How to Fix – Notice: The called constructor method for WP_Widget is deprecated

PHP class constructor for building WordPress widgets

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
__construct()
instead.

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.…