[ad_1] One of the most-used functions in my life with PHP is foreach. Partly, this is because it’s just an exquisitely named function, and it maps well to how I think. Partly this is because it’s kind of the backbone of a webpage: iterate through a set of things, operating on some selectively, and then … Continue reading PHP Foreach: All You Need to Know
Category: Back-End Development
How to Properly Modify JavaScript Files in a Parent Theme
[ad_1] I recently needed to modify a JavaScript file in a WordPress parent theme. The script was doing almost what I wanted, but not quite, so I wanted to make minor changes. In your case, you might want to entirely override a parent theme JavaScript file in your child theme, or even deactivate a parent … Continue reading How to Properly Modify JavaScript Files in a Parent Theme
WP Cron in Practice: wp_schedule_event Examples + More
[ad_1] A few weeks ago we talked about what “cron jobs” were in WordPress and beyond. That tutorial about what “WordPress scheduled tasks” are hopefully gave you a good understanding of some of the things that you might do with them. Today we’ll instead focus on how you’ll use wp_schedule_event to actually do them. That … Continue reading WP Cron in Practice: wp_schedule_event Examples + More
How to Create and Use WordPress User Metadata (User Meta)
[ad_1] In this article, we explore WordPress user metadata, usually called simply WordPress user meta.We’ll explain, among other things:How to add custom user meta fields in WordPress,How to get user meta data in your WordPress PHP code,How to delete and update user meta, andOur suggestions for easily building user metaboxes that are editable by other … Continue reading How to Create and Use WordPress User Metadata (User Meta)




