Wordpress Snippets

WordPress snippet that will turn links into a preview card
WordPress snippet that will turn links (either internal or extern...
Change "Leave a Reply" comment form title
You can change the "Leave a Reply" heading on the WordPress comment form by using the <code data-start="92" data-end=...
Restrict certain file access to a referred website
Use this if you want to upload a PDF to the WordPress media library but restrict access so that only visitors referre...
Wordpress wp_option table full of trazients
The _transient_timeout_wc_product_loop_* entries in your WordPress database are related to WooCommerce t...
Disable Wordpress default login url and set a custom one
How to disable the default Wordpress urls, /wp-admin and /wp-login</em...
Redirect Wordpress default login url to a custom page
In WordPress, you can use the login_init action hook along with the <str...
Redirect Wordpress default registration url to a custom page
In WordPress, you can use the login_init action hook along with the wp_redirect...
Redirect 404 pages to the home
Create a custom WordPress function to redirect 404 pages to the home page by adding the following code to your theme'...
Wrapping embedded images with an image-container class in all posts
We can use jQuery to wrap the images under the specified class with a div having the class image-container. Here's a...
How block visitors from a certain country in Wordpress
You can use custom code added to your theme's functions.php file to achieve country blockin...