AnsPress_Vote::ap_deleted_votes( integer $post_id, string $type )
Description #
Update votes count when multiple votes get deleted.
Parameters #
- $post_idinteger (Required) Post ID.
- $typestring (Required) Vote type.
Source #
File: includes/votes.php
public static function ap_deleted_votes( $post_id, $type ) { if ( 'vote' === $type ) { ap_update_votes_count( $post_id ); } elseif ( 'flag' === $type ) { ap_update_flags_count( $post_id ); } }
Expand full source code Collapse full source code View on GitHub: includes/votes.php:141
Add your comment