ap_set_flag_count( integer $post_id, integer $count = 1 )

Description #

Set flags count for a qameta

Parameters #

  • $post_id
    integer (Required) Post ID.
  • $count
    integer (Optional) Custom count. Default value: 1

Changelog #

VersionDescription
3.1.0Introduced.

Source #

File: includes/qameta.php

function ap_set_flag_count( $post_id, $count = 1 ) {
	return ap_insert_qameta( $post_id, array( 'flags' => $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