# sellkit/1.7.9/includes/dynamic-keywords/contact-segmentation/utm-source.php

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

- Page: https://pluginprobe.com/plugins/sellkit/1.7.9/code/includes/dynamic-keywords/contact-segmentation/utm-source.php
- Raw: https://pluginprobe.com/plugins/sellkit/1.7.9/raw/includes/dynamic-keywords/contact-segmentation/utm-source.php
- Modified: 2023-12-04T06:56: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/1.7.9/code/includes/dynamic-keywords/contact-segmentation/utm-source.php#L10-L20`.

```php
<?php

namespace Sellkit\Dynamic_Keywords\Contact_Segmentation;

/**
 * Class UTM Source.
 *
 * @package Sellkit\Dynamic_Keywords\Contact_Segmentation
 * @since 1.1.0
 */
class Utm_Source extends Contact_Segmentation_Base {

	/**
	 * Constructor.
	 *
	 * @since 1.1.0
	 * phpcs:disable Generic.CodeAnalysis.UselessOverridingMethod
	 */
	public function __construct() {
		parent::__construct();
	}

	/**
	 * Get class id.
	 *
	 * @return string
	 */
	public function get_id() {
		return '_utm_source';
	}

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

	/**
	 * Render content.
	 *
	 * @param array $atts array of shortcode arguments.
	 * @return string
	 */
	public function render_content( $atts ) {
		if ( empty( self::$contact_segmentation ) ) {
			$this->get_data();
		}

		if ( ! isset( self::$contact_segmentation['utm_source'] ) ) {
			return $this->shortcode_content( $atts );
		}

		return self::$contact_segmentation['utm_source'];
	}
}

```
