# sellkit/trunk/includes/dynamic-keywords/keywords/order-items-count.php

SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster, version trunk. 38 lines.

- Page: https://pluginprobe.com/plugins/sellkit/trunk/code/includes/dynamic-keywords/keywords/order-items-count.php
- Raw: https://pluginprobe.com/plugins/sellkit/trunk/raw/includes/dynamic-keywords/keywords/order-items-count.php
- Modified: 2025-10-06T16:06:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/sellkit/trunk/code/includes/dynamic-keywords/keywords/order-items-count.php#L10-L20`.

```php
<?php

class Order_Items_Count extends Tag_Base {
	/**
	 * Get class id.
	 *
	 * @return string
	 */
	public function get_id() {
		return '_order_items_count';
	}

	/**
	 * Get class title.
	 *
	 * @return string
	 */
	public function get_title() {
		return esc_html__( 'Order Item Count', 'sellkit' );
	}

	/**
	 * Render true content.
	 *
	 * @param array $atts array of shortcode arguments.
	 * @return string
	 */
	public function render_content( $atts ) {
		$this->get_data();

		if ( empty( self::$order ) ) {
			return $this->shortcode_content( $atts );
		}

		return self::$order->get_item_count();
	}
}

```
