PHP allows you to make an assignment within a conditional expression. What order are the expressions evaluated? In this episode, you’ll roll up your sleeves and write some code to find out while Tonya explains it to you.

Developing & Empowering WordPress Developers
Labs are hands-on coding projects that you build along with Tonya as she explains the code, concepts, and thought processes behind it. You can use the labs to further your code knowledge or to use right in your projects. Each lab ties into the Docx to ensure you have the information you need.
Each lab is designed to further your understanding and mastery of code. You learn more about how to think about its construction, quality, maintainability, programmatic and logical thought, and problem-solving. While you may be building a specific thing, Tonya presents the why of it to make it adaptable far beyond that specific implementation, thereby giving you the means to make it your own, in any context.
0 Videos Runtime
PHP allows you to make an assignment within a conditional expression. What order are the expressions evaluated? In this episode, you’ll roll up your sleeves and write some code to find out while Tonya explains it to you.
0 Videos Runtime
A conditional expression can be comprised of functions, literals, constants, and variables. How do functions work? What is the evaluation order? In this episode, you will build expressions with functions and discover the flow and order.
0 Videos Runtime
Let’s talk about what a conditional expression is, what’s its purpose (intent), and what it does. In this episode, we setup this series for you to deeply learn about conditional expressions.
0 Videos Runtime
What constitutes a falsey state? And when there is one variable in a conditional expression, what is it doing? How does it work? In this episode, you will build code to explore the falsey conditional expression. You will learn about what and why the state is falsey.
0 Videos Runtime
The question I often get is: If I only need a couple of the arguments that a filter or action makes available, do I have to specify all of them in the callback function for add_filter() and add_action(). For example, if a filter, such as shortcode_atts_{$shortcode} has 4 arguments, but I only need 3, do I have to wire it up for all 4? In this video, Tonya explains why you have control over what you want to receive by looking into WordPress core at apply_filters().
0 Videos Runtime
In this quick tip, Tonya shows you how to reduce your code when you want to merge default parameters (settings) together with the implement. She shows you a shortcode example from WordPress which uses a foreach() to accomplish what one line of code and do, i.e. using array_merge.
0 Videos Runtime
You have to match the number of arguments to the number of required parameters for a PHP function. A common error is when you forget to specify the number of arguments to send when wiring up an event callback for add_action() or add_filter(). In this video, Tonya shows you why you have to specify this number.
0 Videos Runtime
Let’s talk about the ternary operator. It can be confusing for many. In this video, Tonya puts the if/else side-by-side with its equivalent ternary to help you know and understand it. The alternate syntax tip is found here. This tip is valid for JavaScript and PHP.
15 Videos 03:04:55 Runtime
Object-oriented programming (OOP) seeks to emulate real objects through code. In life, objects have both characteristics, those attributes that define it, and behavior. OOP is a completely different approach to programming than procedural. As such, its actual implementation is often misapplied and misunderstood. In this hands-on lab, you will get an introduction to OOP. You’ll explore how to implement it for your WordPress plugins and theme.
Know the Code flies on WP Engine. Check out the managed hosting solutions from WP Engine.
WordPress® and its related trademarks are registered trademarks of the WordPress Foundation. The Genesis framework and its related trademarks are registered trademarks of StudioPress.
This website is not affiliated with or sponsored by Automattic, Inc., the WordPress Foundation, or the WordPress® Open Source Project.