Clanbite Points

on_social_poll_voted( int $post_id, int $user_id, int $option_index, object $post_row ): void

Award points to a member who voted in a social poll.

public static

Class: Kernowdev\ClanbitePoints\Integration\Companion_Hooks

Parameters

$post_id (int) Required

Post ID.

$user_id (int) Required

Voter.

$option_index (int) Required

Chosen option index.

$post_row (object) Required

Post row (unused; signature matches Social Kit action).

Returns

void

Defined in inc/Integration/Companion_Hooks.php

Changelog

VersionDescription
1.2.1Updated.