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, […]
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 […]
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 […]
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 […]
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 […]
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 […]
Assuming you have Mixture and XAMPP (or similar local server) installed and your WordPress site is already working locally. Make sure there’s no existing compass folder or config.rb file in your theme folder. Start XAMPP (or other local server). Start Mixture. Click Open in Mixture and select your theme folder inside wp-content/themes Select your theme folder […]
Need a tag cloud without all the styles? Just a simple unstyled, linked list of all the tags used throughout a blog? Try the wp_list_categories() function. Weird, I know. The taxonomy parameter of the function enables it to list post tags instead of categories. The following displays a linked list of all the post tags […]
A pluggable function is a a function wrapped in a function_exists() call eg. <?php if ( ! function_exists( ‘my_pluggable_function’ ) ) { function my_pluggable_function() { /* Some code goes here */ } } ?> When using a child theme, you can override pluggable functions by defining them first in your child theme’s functions.php file. The child […]
This function includes the script if it hasn’t already been included, and safely handles dependencies (scripts that must be loaded before the script). <?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );?> $handle is the name of the script in lowercase. $src (optional) URL to the script. This parameter is only required when WordPress does not […]