'woo_categories', 'total_pages' => isset($args['total']) ? $args['total'] : wc_get_loop_prop('total_pages'), 'current_page' => isset($args['current']) ? $args['current'] : wc_get_loop_prop('current_page'), 'format' => isset($args['format']) ? $args['format'] : '', 'base' => $base ]); ob_start(); }, 1, 4 ); add_action( 'woocommerce_after_template_part', function ($template_name, $template_path, $located, $args) { if ($template_name !== 'loop/pagination.php') { return; } ob_get_clean(); }, 1, 4 );