ap_update_total_flags_count()
Description #
Update total flagged question and answer count.
Source #
File: includes/flag.php
function ap_update_total_flags_count() { $opt = get_option( 'anspress_global', array() ); $opt['flagged_questions'] = ap_total_posts_count( 'question', 'flag' ); $opt['flagged_answers'] = ap_total_posts_count( 'answer', 'flag' ); update_option( 'anspress_global', $opt ); }
Expand full source code Collapse full source code View on GitHub: includes/flag.php:190
Add your comment