ap_update_flags_count( integer $post_id )

Description #

Increment flags count.

Parameters #

  • $post_id
    integer (Required) Post ID.

Changelog #

VersionDescription
3.1.0Introduced.

Source #

File: includes/qameta.php

function ap_update_flags_count( $post_id ) {
	$count = ap_count_post_flags( $post_id );
	ap_insert_qameta( $post_id, array( 'flags' => $count ) );

	return $count;
}

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