Author: Latz

  • Customizing the User Registration Notification eMails

    If a new user registers at a WordPress site the new user and the administrator receive notification emails: User: From: myBlog (info@myBlog.com)Subject: [myBlog] Your username and password info Username: new_user To set your password, visit the following address:<http://myblog/wp-login.php?action=rp&key=3oCJkevP1ZSSb0P8DlOW&login=new_user> http://myblog/wp-login.php Admin: From: myBlog (info@myBlog.com)Subject: [myBlog] New User Registration New user registration on your site myBlog: Username:…

  • Download older plugin versions from wordpress.org

    There’s a simple way to get hold of previous versions of your WordPress plugins, for example if a current version breaks your setup.

  • Create your own bulk actions

    Including version 4.6 it was quite difficult to add custom bulk actions to the WordPress admin pages. In version 4.7 a hook is added that simplifies the task a lot: add_action(‘bulk_actions-{screen_id}’, ‘my_bulk_action’); Defining the hook As an example we’ll use the post page, the variables are named accordingly. add_filter( ‘bulk_actions-edit-post’, ‘register_my_bulk_actions’ );

  • Download older plugin versions from wordpress.org

    So you’ve updated your plugins… … and your blog doesn’t work anymore … and you have no backup … … of course not! Wouldn’t it be nice if you could download the previous versions and get your blog back on track again? Well… you can!

  • Inform user about automatic comment closing time

    To prevent spammers from flooding old articles with useless comments you can set WordPress to close comments after a certain number of days: It might be surprising for some users if the comments are closed automatically so it might be a good idea to inform them about the remaining time. add_action( ‘comment_form_top’, ‘topic_closes_in’ ); function…

  • Escaping the maintenance mode trap

    WordPress makes upgrading very easy . You simply click “Update now”, wait for a minute or two and your system is up to date. If, well if everything works fine. The most common problem during an upgrade is the Internet connection to drop unexpectedly or the user to shut down the browser unintentionally. In both…