AnsPress_Hooks::delete_subscriber( $ref_id,  $user_id,  $event )

Description #

Update qameta subscribers count on adding new subscriber.

Parameters #

  • $rows
    integer (Required) Number of rows deleted.
  • $where
    string (Required) Where clause.

Source #

File: includes/hooks.php

	public static function delete_subscriber( $ref_id, $user_id, $event ) {
		// Remove ids from event.
		$esc_event = ap_esc_subscriber_event( $event );

		if ( in_array( $esc_event, [ 'question', 'answer', 'comment' ], true ) ) {
			ap_update_subscribers_count( $ref_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