[memb_user_counter]
This Applies to
OTHER DOCS Available
Summary
This shortcode includes a counter of how many times a user has viewed a specific page or post.
Shortcode Examples
[memb_user_counter name="test counter" op="incr"]
Example Usage for logged in member:
You have viewed this page [memb_user_counter name="test counter" op="show"] times.
Shortcode Parameters
name: The name of the counter, can include spaces.
set: Sets the counter to the value define in “val”.
show or get: Displays the counter (Default).
incr: Increase the counter by val (defaults val to 1 if not set).
decr: Decrease the counter by val (defaults val to 1 if not set).
Shortcode Attributes
Additional Information
PHP Function:
[$membershipsystem->getUserCounter( $counter_name )
[$membershipsystem->setUserCounter( $counter_name, $new_value )