AnsPress_Vote::ap_deleted_votes( integer $post_id, string $type )

Description #

Update votes count when multiple votes get deleted.

Parameters #

  • $post_id
    integer (Required) Post ID.
  • $type
    string (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 );
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment