Categories
We've found 143 snippets for you.
Enqueue Scripts and Stylesheets in WordPress
The proper way to enqueue scripts and stylesheets in WordPress is very import...
Add Custom Image Size to Post Thumbnails
WordPress has built-in function add_image_size(). Using this core function in...
Display All WP Query Variables in WordPress
When developing a WordPress theme or plugin, it's very useful to be able to o...
Disable WordPress Admin Bar for All Users Except Admins
To disable the Admin Bar for all users except Admin capabilities, add this si...
Set Minimum Word Count to Publish Post
This code snippet will let you set a minimum word count for WordPress posts. ...
Protect .svn Folders From Public Access
For using WordPress with Subversion, the first thing you want to do is to pro...
Check If a WordPress User is Logged In
To show different content based on whether a WordPress user is logged in or n...
Prevent Browser Caching Image Files
To prevent browser caching image files, we can append image URLs with query s...
Force Trailing Slash To Requested Urls
When optimizing your website for duplicate content, the trailing slash is ver...
Change WordPress Post Autosave Settings
WordPress autosave draft every 30 seconds, but you can control the time inter...
Batch Delete Spam Comments With Specific URL
You can run this simple SQL query through PHPMyAdmin to batch delete spam com...
Change WordPress Logo on Login Page
By default, WordPress logo is displayed on user registration and login pages ...