BCherry
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: Woocommerce Subscriptions List Table PHP ErrorThank you
Forum: Plugins
In reply to: Woocommerce Subscriptions List Table PHP ErrorIm getting the same error and only about 10 of my subscriptions are showing.
Adding an array to the foreach statement on line 559 gets the error to disappear. However but the .subsubsub menu that shows Active subscriptions etc count to is not displaying.
foreach ((array) $this->statuses as $status => $count ) { if ( ( isset( $_GET['status'] ) && $_GET['status'] == $status ) || ( ! isset( $_GET['status'] ) && $status == 'all' ) ) { $class = ' class="current"'; } else { $class = ''; } $base_url = admin_url( 'admin.php?page=subscriptions' ); if ( isset( $_REQUEST['s'] ) ) { $base_url = add_query_arg( 's', $_REQUEST['s'], $base_url ); } if ( isset( $_GET['_customer_user'] ) && ! empty( $_GET['_customer_user'] ) ) { $base_url = add_query_arg( '_customer_user', $_GET['_customer_user'], $base_url ); } if ( isset( $_GET['_product_id'] ) && ! empty( $_GET['_product_id'] ) ) { $base_url = add_query_arg( '_product_id', $_GET['_product_id'], $base_url ); } $views[ $status ] = sprintf( '<a href="%s"%s>%s (%s)</a>', add_query_arg( 'status', $status, $base_url ), $class, ucfirst( $status ), $count ); } return $views; }
Viewing 2 replies - 1 through 2 (of 2 total)