How to edit woocommerce sub-category page

You would need to override the template in WooCommerce which displays the category page and add in your own sidebar / html. woocommerce/templates/archive-product.php You can read up on how to do this here: https://docs.woocommerce.com/document/template-structure/ Don’t forget to add theme support in your functions.php file too. function mytheme_add_woocommerce_support() { add_theme_support( ‘woocommerce’ ); } add_action( ‘after_setup_theme’, ‘mytheme_add_woocommerce_support’ … Read more

How to add all subcategories as submenu in WordPress menu

For menus this large, it’s usually more efficient to use functions like wp_list_categories() (which can also output custom taxonomies like Product Categories) in whatever theme template you need to affect. Bonus: your menu will always be current, because unlike a static WP Nav Menu, this will always pull all Product Categories and not need manual … Read more

WooCommerce Review Author Hook on Review Submission

Found it! Go to wp-includes > comment-templates.php. Edit around line 2560: else ( ! is_user_logged_in() ) { to else { Then in my plugin .php file or your Theme ‘function.php’, add: function modify_author($commentdata) { $commentdata[‘comment_author’] = $_POST[‘author’]; // You should sanitize this. return $commentdata; } add_filter(‘preprocess_comment’, ‘modify_author’); I know it’s bad idea to modify comment-templates.php, … Read more