Year: 2022

9 Things I Learned from WordCamp Europe 2022

A lot of interesting things surfaced in the open conversations with Matt and Josepha at WCEU. I also learned a lot from Pablo Postigo, Feliz Arntz, Shane Pearlman, Jonathan Wold, Nora Ferrerio, Milana Cap.

Post Status Notes #501

White puzzle pieces assembled with one piece missing, revealing a contrasting yellow surface

Elementor acquires StratticWP Engine acquires Delicious Brains‘ plugins 🧠 • When the Cathedrals own the Bazaars and Shopping Centers and you’re in a strip mall with a fruit stand…Jetpack decouples • InstaWP gets seed funding from Automattic 🌱 • Automattic hire #2000 • World-class FSE, how? 🌐 • WCEU by the numbers • Weglot gives back • RoleUp rolls out • Tadlock exits WP Tavern 🍺 • Why ‘why’ matters most • The Big 2-0 next year • All there is to know about core WordPress email notifications, documented ✉️ • System font stack check • Do not follow by default • Museum of Block Art opens 🎨 • Meet Yvonne Doll • Mostly modest WordPress wishlists • WooCommerce Experts to go global • How to do well in a downturn 📉 • Some things we don’t — but ought to — talk about. 🐘 Silent no longer about Sustainability.

WooCommerce Function of the Week: wc_current_user_has_role

What if you want to show hidden information only to “administrators” or “shop managers?” What about displaying a custom “My Account” tab just for logged-in customers?

Running functions based on user roles by using conditional logic is a common part of WooCommerce customization.

What if you want to show hidden information only to “administrators” or “shop managers?” What about displaying a custom “My Account” tab just for logged-in customers?

Well, wc_current_user_has_role allows us to check just that: what role group does the logged-in user belong to.

WordPress has six pre-defined roles: Super Admin, Administrator, Editor, Author, Contributor, and Subscriber. WooCommerce adds another two: Shop Manager and Customer. Other plugins may add more. You can theoretically create any number of user roles. Each role is allowed to perform a defined set of tasks called capabilities.

As usual, we’ll study the WooCommerce core function code for wc_current_user_has_role, see where and why it’s used, and finally, we’ll cover a quick case study. Enjoy!

Read more

WordPress Podcast and Video Picks for the Week of May 29

Vikas Singhal on InstaWP’s backing from Automattic • Raffaella Isidori on the importance of UX • How to get the most out of WordCamps • Peter Suhm on Reform • Josepha Haden Chomphosy shares her open-source reading list • Hiring and capital_p_dangit • Ryan Welcher live-coding block templates

What’s a WordPress “Developer?”

It’s a good time to celebrate growth, maturity — and longevity. This is our 500th issue. WordPress is 19! And the 6.0 release is just a few days old, with new and old hands contributing from all over the world. Many are “developers” of some kind. Those who are showing up every day to make the project work and to make a living in WordPress are the professionals. Here’s to them!

WooCommerce Function of the Week: add_fee

Before we dive in this week’s function, please note that it’s usually against any payment provider’s Terms of Service (like PayPal’s) to add fees to a transaction based on the customer’s chosen payment gateway, so please make sure to use “cart fees” in a legal way.

You got it — in this issue we’ll study the add_fee WooCommerce function, which indeed gives us the power to add custom fees to orders at checkout based on any criteria you define.

As usual, we’ll study the WooCommerce core function code, see where and why it’s used, and finally we’ll cover a quick case study. Enjoy!

Read more

Post Status Notes #500

It’s the 500th issue of Post Status Notes and the Post Status newsletter coinciding with WordPress’s 6.0 release and its 19th anniversary! 🎂

WooCommerce Function of the Week: wc_get_product_category_list

Here’s yet another time-saving WooCommerce function. No need to reinvent the wheel — with a single line of code and no custom queries, you can get all the categories a product belongs to.

This week’s function is wc_get_product_category_list, and there’s no need to explain what it does as its name is self-explanatory.

As usual, we’ll study the WooCommerce core function code, see where and why it’s used, and finally we’ll cover a quick case study. Enjoy!

Read more

Post Status Notes #499

Kim Parsell Memorial Scholarship returns to WCUS › Think like a platform again! › Leo Gopal on support for mental health in the community › WP Accessibility Day › Performance Lab 1.1.0 › The WordPress Way › Dropping jQuery for speed › More to WP than Headless and FSE for devs › and more…

A2 Hosting
Omnisend
WordPress.com