#WordPress
WordPress development tutorials with working code: hooks and filters, functions.php snippets, custom post types, WP-CLI, security hardening and performance tuning.
How to add code to Header and Footer in WordPress via functions.php
Adding code to WordPress header or footer is needed when you have Google Analytics, Facebook Pixel, Hotjar or any other service code that has to be placed in that specific [...]
How to check if user is logged-in in WordPress
We already covered how to check if user is admin or has any other capabilities. This time we will cover how to check if the user is actually logged-in in [...]
How to check if user is administrator or editor in WordPress
WordPress has a build in function to check if the current logged-in user is whether administrator, editor or any other capability you have. I am talking about the current_user_can() function [...]
WordPress development tutorials with working code: hooks and filters, functions.php snippets, custom post types, WP-CLI, security hardening and performance tuning.



2019-2026 ©