Feb 25 2022 Git stash explained with practical WordPress development workflow exampl ... Use git stash to save work in progress when switching branches for urgent fixes in WordPress theme development, with pop apply and branch commands.
Feb 15 2022 Copy to clipboard with the JavaScript Clipboard API in WordPress Implement copy to clipboard buttons in WordPress using the modern navigator.clipboard API with an execCommand fallback for older browsers.
Feb 1 2022 Register and use custom WordPress post statuses in your plugin Register custom post statuses in WordPress with register_post_status and inject them into the classic editor dropdown with JavaScript.
Jan 15 2022 Throttle and debounce scroll and resize events in JavaScript Implement throttle and debounce utilities to limit how often scroll and resize JavaScript event handlers fire in WordPress themes.
Jan 1 2022 Add a custom meta box to the WordPress post editor with secure save hand ... Register a custom meta box on WordPress posts and pages with wp_nonce_field CSRF protection and sanitised save_post handling.
Dec 15 2021 Handle JavaScript errors with try catch and window.onerror in WordPress ... Catch synchronous and async JavaScript errors with try/catch, window.onerror and unhandledrejection to prevent silent failures in WordPress themes.
Dec 1 2021 Reduce WordPress Heartbeat API frequency to lower server load Slow down or disable the WordPress Heartbeat API with heartbeat_settings filter to reduce constant admin-ajax.php requests on shared hosting.
Nov 1 2021 WordPress Options API: add_option, get_option, update_option explained Learn how to use the WordPress Options API to store and retrieve plugin settings with correct autoload and sanitisation.
Oct 20 2021 Add custom admin notices in WordPress with PHP Display success, warning and error admin notices in WordPress with persistent AJAX dismissal stored in user meta.