Hierarchical category menu shortcode

/** * Upgraded: Hierarchical category menu shortcode with: * – Collapsed-by-default children * – Per-branch toggle (checkbox styled like radio) * – Multiple branches can be open concurrently * – Auto-expand active branch path (ancestors of current) * – localStorage…Continue reading

canonical category URLs

/** * Shortcode: [atk_filter_menu] * Outputs a list of real WooCommerce product categories linking to /shop/filter/{slug}/ */ add_shortcode(‘atk_filter_menu’, function ($atts) { $atts = shortcode_atts([ ‘parent’ => ”, // optional parent term ID (or leave blank for all top-level) ‘show_count’ =>…Continue reading

Add Custom Fields to Products.php

/** * Merchatura – Simple per-product custom fields (v4.2) ✅ Conditional Logic added * * Adds per-field conditional rules that work: * – In admin (inline rule builder under each field) * – On the product page (hide/show live) *…Continue reading

Allow SVG Files Upload

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading