Using is_single() in WooCommerce

If you’ve ever done any coding in WordPress then you may have used the is_single() function, it’s super useful for finding out if you’re on a specific single post page function hwn_filter_content_using_issingle($content) { if( is_single(35) && is_main_query() ) { $new_content = ‘<p>This bonus content is added to the bottom of post 35.</p>’; $content .= $new_content; … Read more

How to use add_filter and apply_filters in WooCommerce

How to use add_filter and apply_filters in WooCommerce

Filters in WordPress allow you to alter content without directly altering core WordPress files, they also allow you to alter dynamically generated content before it is shown to users. As WooCommerce is built on top of WordPress filters are used extensively, and if you want to learn how to modify WooCommerce you’ll need to build … Read more