WP / Woocommerce admin search
-
Hello,
I added the following code:
add_filter( 'relevanssi_search_ok', 'rlv_product_search_override', 10, 2 ); function rlv_product_search_override( $ok, $query ) { if ( isset( $query->query_vars['product_search'] ) ) $ok = true; return $ok; } add_filter( 'relevanssi_modify_wp_query', 'rlv_product_search_modify' ); function rlv_product_search_modify( $query ) { if ( isset( $query->query_vars['product_search'] ) ) { $s = $_GET['s']; $query->set( 's', $s ); } return $query; }
within functions.php of the child theme and also ticked option for admin search under ‘Searching’ Tab.
Is there a way for the product’s admin page at
wp-admin/edit.php?post_type=product
to search for attribute taxonomies using Woocommerce 4.6.2 ?Thanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘WP / Woocommerce admin search’ is closed to new replies.