AnsPress_Notification_Hook::undo_vote_up( integer $post_id )

Description #

Notify when user recive an up vote.

Parameters #

  • $post_id
    integer (Required) Post ID.

Source #

File: addons/free/notification.php

	public static function undo_vote_up( $post_id ) {
		ap_delete_notifications( array(
			'ref_id' => $post_id,
			'actor'  => get_current_user_id(),
			'verb'   => 'vote_up',
		) );
	}

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