ap_update_subscribers_count( integer $post_id, integer $count = false )
Description #
Set subscribers count for a qameta.
Parameters #
- $post_idinteger (Required) Post ID.
- $countinteger (Optional) Custom count to update. Default value: false
Source #
File: includes/qameta.php
function ap_update_subscribers_count( $post_id, $count = false ) { if ( false === $count ) { $count = ap_subscribers_count( 'question', $post_id ); } ap_insert_qameta( $post_id, array( 'subscribers' => $count ) ); return $count; }
Expand full source code Collapse full source code View on GitHub: includes/qameta.php:444
Add your comment