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.
Return Return
(void)
Source Source
File: includes/class.llms.generator.php
public function increment( $type ) { if ( ! isset( $this->stats[ $type ] ) ) { $this->stats[ $type ] = 0; } $this->stats[ $type ]++; }
Expand full source code Collapse full source code View on GitHub
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. |
User Contributed Notes User Contributed Notes
Permalink: