WordPress: Restrict direct access to files – Prevent hotlinking
A useful bit of code to prevent files from being accessed (or...
9.Jun.2016 | Code Snippets
Simple bit of jQuery to add an active class to the current navigation item based on the page url.
jQuery("nav a").each(function() {
if (this.href == window.location.href) {
jQuery(this).addClass("active-sidebar");
}
});
Share
A useful bit of code to prevent files from being accessed (or...
Get the featured image dimensions (width and height) in WordPress. Paste the...
In the early days (2003), WordPress was essentially a blogging tool and...
A useful bit of code to prevent files from being accessed (or hotlinked) in WordPress. Prevent files from being directly...
In the early days (2003), WordPress was essentially a blogging tool and quite limited in how you could build with...
Commonly asked eCommerce questions: A nice little bit of information about #PCIDSS for @WooCommerce - http://goo.gl/BSK6Ba Lee Harris - Twitter...