Developing WordPress: What You Need to Learn

  • Download and install WordPress on a development PC.
    • LAMP/WAMP/XAMP stack (Apache, MySQL, PHP)
    • Database table naming. Default is “wp_”. Change the name in config.php so multiple installations in the one DB.
  • Training:
  • Official WordPress sites:
  • Terms and Concepts (and how they work)
    • Users
    • Roles
    • Taxonomies
    • Posts (this the core of WordPress) and Post Types
    • Custom Post Types
    • Database structure
  • Custom Development
    • Themes
    • Plug-ins
    • Shortcodes
    • Page Templates
    • ‘Meta’ fields
    • Custom Roles
    • Extending user information/fields
    • WordPress API
    • Actions, Hooks, Filters
  • Achieving specific ends
    • Creating forms for users in the front-end
  • Good Themes and plug-ins to know
    • Themeco ‘X’ or ‘Pro’ themes
    • Advanced Custom Fields (ACF)
  • Other things to think about
    • Form validation for custom forms
    • Data sanitisation
    • Security
    • Exception handling (500 & 404)
    • Unit test and general testing
      • https://codex.wordpress.org/Theme_Unit_Test
    • Logging
    • User analytics (tracking user behaviour)
    • Different plug-ins (and theme) loading the same javascript resources (e.g. jQuery). Think about version conflicts.
    • Updating themes and plug-ins
    • Debugging (e.g. debug(‘WP_DEBUG’, true);)

Thinking about DevOps:

  • The database stores a lot of configuration data.
  • Plug-in development
  • Theme development
  • Creating dev/test environments from prod.
    • Renaming domains in the .database
  • Can we push dev/test (including config via DB) to prod? Investigate.
  • Deploying themes and plug-ins (is built-in WP the best, even for us?)

Look at:

wordpress.org/extend/plugins/monster-widget/
../theme-check/
../developer/
../debogger/
../log-deprecated-notices/

http://wptest.io/

Peel a hard boiled egg (cold from the fridge)

It’s usually pretty easy to peel a boiled egg that’s not long off the stove and still warm.

What I’ve always found hard is peeling one you take [cold] out of the fridge.

Sometimes it peels easily. Sometimes it doesn’t.

I think tonight I realised the secret:

Tap/crack the egg on the ends (not the long side) and peel. Much easier.

I made 6 hard boiled eggs yesterday. I cracked one last night – on its side – and ended up losing half the outer white.

I cracked another again earlier tonight – again on the side – and same result.

A few minutes ago I wanted one more and for some reason, I decided to crack it on the ends instead of the side. The shell practically slid off that time. And in doing so I remembered that’s how I’ve done it easily in the past.

 

Give it a go. It may work for you too. If it doesn’t, experiment with different angles to crack the egg.
Crackability may also vary with how you cook it. The important thing is if it doesn’t work the first few times, try something different.

Cloud9 – Setting up and using phpMyAdmin MySQL web interface

This page – https://community.c9.io/t/setting-up-phpmyadmin/1723 – says it all, but here are the keys points again:

Using PHPMyAdmin with Cloud9

First, create a PHP workspace so you have PHP, MySQL, and Apache installed right away. You can then make sure you have MySQL installed by running:

mysql-ctl install

Then install phpMyAdmin:

phpmyadmin-ctl install

After the installation is complete you’ll just want to make sure mysql is running once more:

mysql-ctl start

After installing phpMyAdmin, you were given a link to access PHPMyAdmin which will follow the pattern of: https://[workspacename]-[username].c9users.io/phpmyadmin. From that link, you can log in with your Cloud9 username and a blank password.