I had a need to implement custom routing system in my WordPress theme. I’m developing a web application, not a typical theme. There is a predefined set of pages in the app and each of them has its own view (template). Ideally, the design and structure (HTML/CSS) of these templates are located in files, not […]
In the WordPress world, things move and evolve quickly. Tens — sometimes hundreds — of new issues pop up each day. Modifications to WordPress Core happen on daily basis. The community is vibrant, doing something all the time. That’s good. What’s even better is to start following these changes. You could become a better WordPress […]
For my upcoming WordPress-based web application I need to create a nice design of its front-end. The first step is to wireframe the site so you have a basic idea of its layout. After that, the wireframes are transformed into a usable and appealing design. Nowadays, there are plenty of HTML/CSS frameworks which can constitute […]
Logging and error reporting are parts of a debugging process. For some programmers, putting define(‘WP_DEBUG’, true); define(‘WP_DEBUG_LOG’, true); define(‘SAVEQUERIES’, true); define(‘SCRIPT_DEBUG’, true); in the wp-config.php file is the end of the story. Let’s discuss how we can improve the debugging process of our WordPress-based web app.
Are you profiling your WordPress-based web application/site with xhprof? Go read my other article about how to install and configure xhprof profiler with WordPress. Even if you are already familiar with xhprof, there is a small but important problem: the profiling results are unnecessary bloated.
In the upcoming weeks I’ll be working on a single page application built on WP REST API. If you don’t know what that is, read Brian Krogsgard’s awesome article on it. Anyways, what will be this project about?
Global function add_filter is an integral part of WordPress core. Together with the function apply_filters, you can extend WordPress core, plugins and themes without touching a single line in them. Thanks to this, updates become straightforward — just copy and replace the old code with the new one. I’ll be explaining sections of WordPress core, […]
A WordPress site usually comprises a theme and many plugins. If loading speeds and server load are fine for you, congratulations. Otherwise, you have to profile your WordPress-based application. Simply put, profiling means to measure how much CPU time and memory each executed function took. Let’s say you create a custom function to count from […]
After getting into developing WordPress-based web applications and sites, the first thing I did was to find as many dev-useful software as possible. Tools save you great amount of time when you work on your projects. Proficiency in working with them usually tell apart the professional programmers from the amateur ones. I knew WordPress ecosystem is […]