Mindblown: a blog about philosophy.

  • Separate Logic From Output

    Separate Logic From Output

    Once HTML is defined within a function for output, the HTML will be separated from the logic! In this case the function is defined twice. A function contains only logic and values ​​are returned only as return. The second function will contain HTML, test logic, loops or hooks and outputs values ​​as echo. Ok, the […]

  • Adding Custom Fields to WordPress User Profile

    Adding Custom Fields to WordPress User Profile

    The user profile of WordPress can be fairly easily adapted to add your own values​​. So you can add the necessary fields according to your requirements. Here is how you do it, we add a field for the address and the content will be stored in the database. Various hooks in WordPress make sure that […]

  • Register Settings on WordPress Multisite

    Register Settings on WordPress Multisite

    The use of WordPress for several blogs in the network can be useful to simplify several steps and is becoming increasingly popular. Whether you want the classical scenarios of blog hosting service or like to create multilingual websites or other ideas. Therefore, it is also important for plugin developers to use the functions and to […]

  • WordPress constants overview

    WordPress constants overview

    In the backend of WordPress you don’t have an input field for each possible modification. Some are only available via an action or a filter and for some changes you need to define or change a PHP constant. In this article I have listed all constants which WordPress has by nature (except the deprecated ones).

  • 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.

  • Implement a 404 image in your Theme

    Implement a 404 image in your Theme

    Every good Theme comes with a 404.php for requests that don’t match any post or page. But what to do with missing images? They are requested per an <img> element usually, your visitors may never see the HTML template. Let’s use a 404 image. I put the following code on top of my 404.php before […]