LLMS_Generator::increment( string $type )

Increments a stat in the stats object


Description Description


Parameters Parameters

$type

(string) (Required) key of the stat to increment.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.generator.php

	public function increment( $type ) {
		if ( ! isset( $this->stats[ $type ] ) ) {
			$this->stats[ $type ] = 0;
		}
		$this->stats[ $type ]++;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.30.2 Made publicly accessible; change to automatically add new items to the stats if they aren't set.
3.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: