Custom Dashboard Home Screen Options

Replacing the dashboard and adding to the current one are both accomplished with plugins. Fortunately, some pretty smart folks have already figured it out for us… To completely rewrite the Dashboard, you’ll need to create a new page and redirect requests to the built-in dashboard page to your custom one. Fortunately, someone has already figured … Read more

Customize in category page

Review the template hierarchy from the Codex to gain a better understanding of what files are read when. This will help you to understand what’s called in what situation (tag/category/front-page/etc). Content.php is never mentioned in the documentation as its not a part of the template hierarchy. Theme developers will use different file names and will … Read more

Disable email field on WooCommerce customer account details

You can do it by adding this code to functions.php: function custom_override_checkout_fields( $fields ) { unset($fields[‘billing’][‘billing_email’]); return $fields; } add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’, 1000, 1 ); But it is wrong approach, since WooCommerce uses email to notify user about status of the order.

Comparing two WordPress installations

I assume from your question that the ‘bug’ is an operational thing, not a code failure. So, you can write some PHP code that will put the file hashes of every file of the first site into a database. Then compare those hashes with the hashes from the other site. Any difference in files will … Read more

Find and replace domain name on the fly?

I use these two defines in my wp-config.php file: define(‘WP_HOME’, ‘http://dev.mysite.com’); define(‘WP_SITEURL’, ‘http://dev.mysite.com’); Mind the trailing slash (or rather, the lack thereof), else you’ll get permalink bugs. Also note that they’ll actually get used as is if you insert images and so forth when adding content.