Category: WordPress Hacks

  • Easier Plugin Development by Moving Plugin Directory

    Easier Plugin Development by Moving Plugin Directory

    If you’re a experienced programmer you’re testing your programs not only with the latest version of WordPress but also with some older versions since there are many dated installations. So you have several versions installed on your development server and want to test your newly created code with every single version.

  • unserialize() Error at Offset… Different solutions

    unserialize() Error at Offset… Different solutions

    The problem is not always obvious, for example the error message in relation to the function unserialize(). If you look around the net to help you find countless search and few answers, because usually the problem lies in the source, in the passed value. But not always you can control it, especially in debugging helpers […]

  • Activate WordPress Plugins Automatically via a Function

    Activate WordPress Plugins Automatically via a Function

    WordPress stores the active Plugins in the database table options, field activate_plugins, so it is easy to change this value to activate various Plugins by WordPress; either as a Plugin solution after setting up a new installation or because some Plugins need some other Plugins.

  • Advent Calendar – WordPress, WPCron and the right Time

    Advent Calendar – WordPress, WPCron and the right Time

    WordPress offers a pseudo-cronjob functionality, which allows the developer to execute scheduled events. For example, the whole Update Notification does it. In these so-called Scheduled Events you can define your own jobs. Thereby you should however pay attention to one important thing: time.

  • Comment Length Limiter

    Comment Length Limiter

    If you have used Twitter, then you know that you are only allowed to type 140 characters in a single Tweet. There is a nice little number below the text field indicating how much is left to write.

  • Pretty permalinks without mod_rewrite

    Pretty permalinks without mod_rewrite

    There are still some third-class web hosters who do allow the .htaccess files … and turn off the standard module mod_rewrite. But without mod_rewrite, WordPress cannot use pretty permalinks, right? Wrong! There’s another directive we can use: ErrorDocument. ErrorDocument 404 /index.php This will do almost the same as the rewrite rules WordPress offers. It will […]