Dreb Bits

Category: WordPress

A Brief Reunion with WooCommerce

For the past weeks I got the chance to work with WooCommerce (WC) again. Although the plugin has grown so much, including it’s seamless integration with Stripe, I just noticed one (small) thing. Orders shouldn’t be under WC in the admin menu.

Current menu structure is this:


In my mind it should introduce order as it’s own parent menu and separate all WC configuration related items:

I wouldn’t mind few menus popping out there when WC is installed. It’s all about the accessibility of managing my eCommerce store anyway.

WordCamp Bangkok 2017

Congrats (and thank you!) to our good friends in the kingdom of Thailand who made the WordCamp Bangkok possible ūüĎŹūüŹľ! And as much as I can, I’ll be on your side for future WordCamps. I hope I can help next time by not just being an attendee ūüôŹūüŹľ.

Philippines, Japan and Spain (together with other countries) support Thailand!

DDI x WordPress Davao

WordPress for Bloggers, a collaboration with
the Davao Digital Influencers Inc.
Photo by Glen Santillan

To kickoff¬†my year, our local WordPress group was invited to¬†give a talk-workshop to #teamDDI folks at Davao Digital Influencers Inc. It’s a half day event choke-full of user-facing WordPress know-hows directed to those who aspire to blog with WordPress. There will be a blog post coming up in the official WordPress Davao blog.

Here’s my slide to my talk Supercharge Your Blog with WordPress:

[slideshare id=71086995&doc=superchargeyourwordpressblogwithplugins-dreb-170117071634]


Here are the things I mentioned in the talk that reference to plugins and sites:

Welcome to WordPress

One of our local WordPress group members asked how to begin and where to start learning WordPress. I thought it was just a simple question. But somehow I looked around and as someone who has a bit of experience with this platform, where would I direct those who are starting out?

If you have a bit of budget for trainings:

My personal bookmarks:


And by the way, welcome to WordPress ‚̧

Purge Varnish Cache on Save

In case, someone¬†out there trying to figure out how to¬†purge varnish (3.x) cache in¬†your WordPress site¬†when updating a post/page¬†‚ÄĒ¬†I’ve dealt with it¬†this week and it’s pretty easy to accomplish it.

Now that we’re talking about purging the cache, I presumed you have varnish configured and all your setup works. To start off, if there’s no definition of purging in your vcl file, you might want to add them¬†‚ÄĒ¬†https://www.varnish-cache.org/docs/3.0/tutorial/purging.html.¬†Remember to sudo¬†service varnish restart¬†after modifying the file so¬†the¬†changes will take effect.

Now in your ever lovely WordPress:

/** * Purge Varnish cache on save * * @param int $post_id Post ID. */ function awesome_save_post( $post_id ) { wp_remote_request( esc_url( get_permalink( $post_id ) ), array( 'method' => 'PURGE' ) ); // Or store the response if you'd like to verify it further. } add_action( 'save_post', 'awesome_save_post' );

You can pop that in in your code if you only need to invalidate cache for content. For a verbose invalidation such as commenting or deleting an item and when changing themes, checkout Varnish HTTP Purge that is readily available in WordPress plugin repo.

First WordCamp

I’m finally going for my first ever WordCamp. Not only I am attending,¬†but I’ll give a talk as well. In WordCamp Singapore, you will hear me talk about the advantages of utilizing WordPress hooks. How they¬†can massively help pushing features into a large codebase/theme become almost a¬†cinch. When is the best time to add a hook and where you can usually best place a hook. Ultimately, I hope to give you an idea on how actions and filters work in the WordPress ecosystem.

Please checkout the WordCamp Singapore site for other amazing talks and schedule ‚ÄĒ https://2016.singapore.wordcamp.org/

Watch #WCEU 2016

For those who missed the live-stream of WordCamp Europe 2016 or missed several talks, you can watch the recorded videos right in the #WCEU 2016 official website.


First time I joined the event, although virtually, but I had a ton of learning out of¬†watching several speakers¬†talks. It’s¬†amazing to know¬†how these super talented¬†people collaborate for this beautiful¬†thing called WordPress to grow.

If you¬†can’t watch all the videos, I¬†suggest these topics a.k.a the ones I’ve watched:

Honestly, I think¬†almost all the talks are worth watching. I’d definitely go back and watch those that I missed.

Updated ACF Enhanced Message Field

I’m not sure when was the last time I touched this WordPress¬†plugin¬†but nonetheless, i’ve finally got some time to work on several updates. And¬†below¬†are the list of changes that you’ll find¬†in 1.1.0:

  • Compatible with ACF 4.4.6 and ACF Pro 5.3.7
  • Prevent class conflict if this plugin is already added directly in your plugin/theme.
  • Fix: Prevent style being printed in JSON¬†export

You know the drill when an update is available ūüôā

WordPress 4.5 is coming up

WordPress 4.5 is coming up! Peruse this guide for the developer-focused changes  https://make.wordpress.org/core/2016/03/30/wordpress-4-5-field-guide/.

Pay attention to Backbone and Underscore being updated. Might break your scripts (e.g Add button in media library¬†#35853),¬†so make sure to test your code. While you’re at it, it’s even better to test¬†other parts of your plugins and themes¬†with the rest of the changes¬†included in this release. ūüć∑

Simple Act of Contributing

Ever since I got¬†familiar with how the WordPress maintain its codebase and the community behind that pushes fixes and features, I’d always imagine my self being a part of it.¬†And¬†the recent release, WordPress 4.4, is the start of the journey.

I didn’t do much but the simple act of updating a doc block is something could be truly appreciated by the community (core). Once you’re in there, you’ll know how they work hard and not thinking about how their efforts are being compensated. Some #10uppers are part of those who¬†look into the platform very closely and I got in because of them as well. You just need to be in the right team to get you started ūüôā

Now the plugin badge will never be alone.

Screenshot 2015-12-16 01.19.33