AnsPress_Vote::delete_votes( integer $post_id )
Description #
Delete post votes.
Parameters #
- $post_idinteger (Required) Post ID.
Source #
File: includes/votes.php
126 127 128 129 130 131 132 | public static function delete_votes( $post_id ) { $votes = ap_get_votes( array ( 'vote_post_id' => $post_id ) ); foreach ( ( array ) $votes as $vote ) { ap_delete_post_vote( $vote ->vote_post_id, $vote ->vote_user_id ); } } |
Expand full source code Collapse full source code View on GitHub: includes/votes.php:126
Add your comment