Month: June 2022

Today in WordCamp History

Starting today and every day for the next year, I’ll be sharing 1-4 photos that appear on that day from the WP events I was at. I’ll tag the location and people there as well as I can. You can follow on Twitter @KitchensinkWP or at kitchensinkwp.com.

Not Dead Yet! Just Mostly Dead?

Gutenberg 13.4 • Learning FSE sooner rather than later • Gutenberg in Tumblr and Day One • WordCamps and the vitality of the WordPress community • AUS WordPress community only mostly dead? • Get SEO Schema graphs • Web font loading geek out • PHP is 28! • PHP namespaces and autoloaders • You can work anywhere… why not Cleveland? • North Commerce — faster than the rest? • and more…

WooCommerce Function of the Week: woocommerce_wp_text_input

Learn how to add custom fields to settings in WooCommerce meta boxes — and give back to WooCommerce when you find some code that can be improved.

There are times when you need to “mess” with meta boxes in the WooCommerce back end. Meta boxes are the draggable boxes you find in the product, order, and coupon edit pages.

WooCommerce meta boxes contain the current custom post type settings for your products. Think of the “regular price” — that’s a custom field you can find in the “Product Data” meta box in the “product” custom post type edit screen.

Today, we’ll study the woocommerce_wp_text_input function. It provides a neat way to generate an additional text input in case you need additional settings for your products.

For example, suppose you have a “regular price” and a “sale price” but you also want to have a “list price” or “msrp” — a manufacturer’s suggested retail price (MSRP). There’s two ways you could do this:

  • NOT the best way: You could write the MSRP into the HTML description field for every product yourself, but this locks the price as static text in the content where it really doesn’t belong. You might lose track of it or accidentally write over it, and you can’t reuse it on other products without doing the same thing.
  • The BEST way: Instead, you can use woocommerce_wp_text_input to quickly generate an input field on the back end with the right classes, name and id for the product. That means you can store the additional price in the database once the current post is saved and use it on other products.

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

Read more

How Do We Get There From Here?

Man Looking at a Map and Holding a Vintage Compass

Our WordPress Podcast and Video Picks for the Week of June 13 🎙️ JavaScript development journeys • Questions coming out of WCEU • The WordPress toolkit for podcasters • How newcomers and outsiders view WordPress • Are WordPress developers “real developers?” • Gutenber changes • Dave Martin on WP.com • A Gutenberg roadmap for WordPress 6.1.

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.

our sponsors

A2 Hosting
Omnisend
Kinsta
Progress Planner
Elementor
WP Munich
Atarim
Patchstack