Hi,
do you have lots of products? Older version of the plugin fetched all products from database, looped them through and collected all custom fields to make filter dropdown, which is silly. They have now added possibility to override the function so that you can fix the issue without hacking the plugin code.
Here, add this to your theme functions.php to override problematic function. Edit to your use case if needed.
function woosea_get_meta_keys_for_post_type( $post_type, $sample_size = 'modified' ) {
$meta_keys = array();
$add_woosea_basic = get_option ('add_woosea_basic');
if($add_woosea_basic == "yes"){
$posts = get_posts( array( 'post_type' => $post_type, 'limit' => $sample_size ) );
} else {
/*
This is the silly line, replace with something more intelligent
like limiting the numberposts,
or selectively fetch products that provide all necessary options you need.
-T
*/
// $posts = get_posts( array( 'post_type' => $post_type, 'numberposts' => -1 ) );
$posts = get_posts( array( 'post_type' => $post_type, 'numberposts' => 10 ) );
}
foreach ( $posts as $post ) {
$post_meta_keys = get_post_custom_keys( $post->ID );
$meta_keys = array_merge( $meta_keys, $post_meta_keys );
}
// Use array_unique to remove duplicate meta_keys that we received from all posts
// Use array_values to reset the index of the array
return array_values( array_unique( $meta_keys ) );
}