“Echo” is a very handy PHP language construct used to output one or more strings. But echo writes to output directly. So it isn’t very straightforward to save the output of echo into a variable for later use. To do this, you need PHP output buffering.
Code snippets to restrict authors and contributors of multi-author WordPress websites. The first piece of code prevents them from seeing content assigned to other users. The second ensures that users can only see post counts of their own content.
Code snippet for modifying bbPress forum participants capabilities. With this snippet active, your forum participants will be able to trash (but not delete) their own topics and replies.
If you love platform-neutral approaches to programming like we do, you will love Service Oriented Architecture (SOA). This article is a high level overview of SOA. We discuss SOA principles, pros and cons, and components needed for SOA infrastructure.
Controllers are an important part of Laravel MVC (Model, View, CONTROLLER). They are useful for organizing request-handling logic and help to keep the entire code structured and maintainable. This post is a brief primer on Laravel controllers.