Inventory_Presser_WPForms::smart_tags_process( $content,  $tag )

Process the Smart Tags when rendering entries.

On This Page


Source Source

File: includes/integrations/class-wpforms.php

		public function smart_tags_process( $content, $tag ) {
			$our_tags = array_keys( $this->tags() );
			if ( ! in_array( $tag, $our_tags, true ) ) {
				return $content;
			}
			switch ( $tag ) {
				case 'invp_adf_vehicle':
					$content = str_replace( '{invp_adf_vehicle}', $this->adf_vehicle_xml(), $content );
					break;
				case 'invp_site_url':
					$content = str_replace( '{invp_site_url}', site_url(), $content );
					break;
			}
			return $content;
		}