ben(ny) pearson|

Template and guide to creating a WordPress Child Theme

If you modify a theme directly and it is updated, then your modifications may be lost. By using a child theme you will ensure that your modifications are preserved. – WordPress Codex I recommend creating a Child Theme before you make any customisations to the Parent Theme’s options. Otherwise you may need to use a […]

WordPress Maintenance

Why WordPress requires maintenance As you probably know, WordPress is a incredibly popular and powerful platform for creating websites and applications. Unfortunately a downside of this popularity is that it has increasingly become a target for hackers. That said, there are thousands of talented developers from all around the world who are constantly working to […]

Notes on “Learn The Command Line” – a Codecademy course

Links Learn The Command Line course on Codecademy List of Command Line Commands on Codecademy Navigating The File System pwd print working directory – outputs the name of the current working directory ls lists all files and directories in the working directory ls -a lists all contents, including hidden files and directories ls -l lists […]

Customizing the “New User Registration” and “Your username and password” email notifications sent by WordPress

Update (27/11/2020) You can now use this method. <?php // Disable New User Registration email sent to Admin add_action( ‘init’, function() { remove_action( ‘register_new_user’, ‘wp_send_new_user_notifications’ ); remove_action( ‘edit_user_created_user’, ‘wp_send_new_user_notifications’, 10, 2 ); add_action( ‘register_new_user’, ‘bp_send_new_user_notifications’ ); add_action( ‘edit_user_created_user’, ‘bp_send_new_user_notifications’, 10, 2 ); } ); function bp_send_new_user_notifications( $user_id, $notify = ‘user’ ) { wp_new_user_notification( $user_id, null, […]

Notes on “Managing a Freelance WordPress Development Business” by Bill Erickson

These are my reference notes on Bill Erickson’s excellent presentation at WordCamp Austin 2012, entitled Managing a Freelance WordPress Development Business. Many thanks to Bill for sharing his knowledge and experience. These notes are posted here with his approval. Links Watch the presentation on WordPress.tv View the presentation slides Bill Erickson’s website More presentations by Bill […]

3 column fluid layout with header, sticky footer and 100% height columns

I recently had need of a site layout with the following features a header 3 fluid columns 100% or full height columns a sticky footer correct source order of columns IE8 compatible The only existing solutions I could find either used table based layouts or background image techniques to get the columns to display at […]

Notes on “Level-Up Your WordPress Development Skills” by Tom McFarlin

These are my reference notes on Tom Mcfarlin’s presentation at WordCamp Altanta 2013, entitled Level-Up Your WordPress Development Skills. Links Watch the presentation on WordPress.tv View the presentation slides on Slideshare Tom Mcfarlin’s blog post about the presentation   Quotes Try to stay and the intersection of what you love doing and what you’re best […]

How to search for and replace escaped paths in a WordPress database

I recently migrated a website to the host WP Engine. Before the migration the site had WordPress installed in it’s own directory. The directory, in this case, was named wp. WP Engine doesn’t allow this kind of directory setup, so I had to move all the WordPress files up to the root and then remove […]

How to get the path to a file within a WordPress theme

There are two types WordPress functions that should be used when the getting the path to a parent or child theme directory. Template functions are used for resources that are not intended to be over-ridden by a child theme. get_template_directory() get_template_directory_uri() Stylesheet functions are used for resources that are intended to be over-ridden by a […]

Notes on the “WordPress and Git” video series by Amelia Briscoe (Part 1)

These are my reference notes on the excellent video series WordPress and Git by Amelia Briscoe. Many thanks to Amelia for creating this series, sharing it and allowing me to post this summary. This post covers the first four videos. My second post (Part 2) will cover the last five videos. Links Watch the “WordPress […]