This hook allows to manipulate by main WP_Query of the table data.
Some examples:
1 2 3 4 5 6 | add_filter('tableon_wp_query_args', function($args, $table_id) { if ($table_id > 0) { $args['post__not_in'] = [1,2,3]; } return $args; }, 10, 2); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | add_action('tableon_wp_query_args', function($args, $table_id) { if (!isset($args['meta_query'])) { $args['meta_query'] = []; } $args['meta_query'][] = array( 'key' => '_stock_status', 'value' => 'instock', 'compare' => 'IN' ); return $args; }, 10, 2); |