WooCommerce Email Customization

Try filtering the output of that function to remove that column, or set it to an empty string. e.g. function wpse_120798_item_totals($total_rows, $order) { foreach ($total_rows as &$row) { unset($row[‘value’]); // or: $row[‘value’] = ”; } return $total_rows; } add_action(‘woocommerce_email_before_order_table’, function() { add_filter(‘woocommerce_get_order_item_totals’, ‘wpse_120798_item_totals’); }); add_action(‘woocommerce_email_after_order_table’, function() { remove_filter(‘woocommerce_get_order_item_totals’, ‘wpse_120798_item_totals’); });

Staging/production deployment on WordPress MultiSite

You can start by doing a full filesystem and database and put the same thing running on your staging environment under a different domain. Don’t do configuration under this installation or if you do bare in mind that changes will be lost since you want to periodically sync the production database with the staging one … Read more

bbPress – select a topic reply as “answer”

I’ve been thinking about making something similar, and also found those plugins to be outdated. I did create a ‘Mark as sold’ feature for some classifieds I recently added to my site, and I think it will use similar methods. I haven’t started development on it yet, but here’s the idea I’ve been kicking around: … Read more

How do i Sort my Posts

You can order your posts by several strings that are available in WP. The normal way is by alphabetizing or via a plugin. You have the option between order by name or date. But if you want to order your posts by custom tags eg. “most popular”, “relevance”,… Then you could custom code that in … Read more

Custom Post Type Search

Modify the searchform.php, or create one in a child theme (recommended), and you should be able to modify the form all you want. The default HTML is in /wp-includes/general-template.php, to which I have already linked, but don’t edit that. It is a Core file. Copy the markup into your searchform.php if you need a place … Read more

Best hook for a function which adds shortcodes to the system?

If I’m following things correctly, I think the problem is that your shortcode callback echoes, rather than returns its content – and that you have it set up that way in order for the shortcode content to output outside of the post content. If that’s the case, you’re taking the wrong approach. Your shortcode callback … Read more