Category: WordPress Tutorials

  • WordPress MultiSite, Plugins and Activation

    WordPress MultiSite, Plugins and Activation

    WordPress offers for normal Plugins the hook register_activation_hook();. This is active right after the activation of a Plugin, so you can start small installation scripts. But if we are in a MultiSite environment (old: MultiUser) and put the Plugin in the folder wp-content/mu-plugins, then the hook doesn’t do anything, because the Plugin is automatically activated.…

  • Localization with JavaScript in WordPress

    Creating Plugins and Theme functions with multilanguage capability has been established knowadays.Especially for us as German developers it is a must have. But there are some difficulties if you are using JavaScript, the question is how to provide it multilingual or provide option values in different languages. WordPress offers some possibilities and I like to…

  • Adding Input Fields To Comment Form

    Adding Input Fields To Comment Form

    Most comment forms contain the same input fields: Name, Email, URL and the comment text field. This is sufficient for most use cases but there are situations where you might want to know a bit more about your commenter: their age, the city they live in, or the color of their underwear. This article explains…

  • Comment Form Hooks Visualized

    Most themes (e.g. TwentyTen) use the comment_form() function to insert the comment form after posts. There are quite some hooks inside the function but they are hard to localize. The codex documentation isn’t too helpful, neither. To give you an easy overview the following diagrams visualize the points where the various hooks are anchored. The…

  • php-Console with Chrome and WordPress

    Google Browser Chrome and their Chromium project are becoming more popular. Initially it was the speed of Chrome, which made it so popular but now also the extensions are getting in the focus of the users. Nowadays the extension market of Chrome is full of very useful extensions. Of course there are also many enhancements…

  • Simple Cache with the WordPress Transient API

    Today is our last post of our Advents Calendar, we hope you enjoyed it. WP Engineer wishes a Merry Christmas to our readers! WordPress has an API that is explicitly designed for time-controlled storage of data – the Transient API. This API is designed to cache any data in the database and very simple to…