AnsPress_Hooks::delete_subscriber( $ref_id, $user_id, $event )
Description #
Update qameta subscribers count on adding new subscriber.
Parameters #
- $rowsinteger (Required) Number of rows deleted.
- $wherestring (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 ); } }
Expand full source code Collapse full source code View on GitHub: includes/hooks.php:851
Add your comment