A useful bit of code to prevent files from being accessed (or hotlinked) in WordPress. Prevent files from being directly...
Get the featured image dimensions (width and height) in WordPress. Paste the following code in the single.php file. <?php $post_id...
In the early days (2003), WordPress was essentially a blogging tool and quite limited in how you could build with...
To allow the editor user role to have full access to Gravity Forms, simply add this code to your functions.php...
Add this code to your functions.php file to add the dimensions to the image object array for svgs. add_filter( 'wp_get_attachment_image_src',...
A quick snipped of code filter parameters into YouTube oEmbed requests. Handy to remove suggested videos, YouTube contols and info....
If you have recently bought a 4k monitor, you may have noticed your Adobe software shrinking to an annoyingly small...
A quick snipped of code that can be used attach a function to the escape key. Great for adding or...
For me, the ACF plugin is a standard install for every WordPress project. Its a great tool for developers to...
Fed up of getting the W3 Validator warning "The type attribute is unnecessary..."? Here is a handy bit of code to...
A nice solution for a custom WordPress Ajax login form without using a plugin. Place this anywhere you would like...
Need a bespoke WooCommerce site with dynamic content for two types of visitor? For example, this is from a recent...