Category: Tip

Delete all WordPress subscribers with simple script

Delete all WordPress subscribers with simple script

At some point you might need to delete all the WordPress Subscribers for some reason, mostly spam users. Here is a quick script to do it. Simply create a file in the root of you server with the following code: Don’t forget to delete the file when done on the server so no one can […]

Password Protect WordPress Attachments (files)

Password Protect WordPress Attachments (files)

You might have some sections of your Wordpress site that are only accessible for your Wordpress user. Pretty easy to protect the page or post in Wordpress for only the registered user but what about the attachments of the post/page (files, images)?

Easy redirect with WordPress function wp_redirect

Easy redirect with WordPress function wp_redirect

In a recent project, I had to redirect a specific category archive to a Wordpress page. I wanted to show special content when people were accessing the category archive page. This is actually pretty easy using the Wordpress wp_redirect function.