AP_Update_Helper::flags( integer $post_id )

Description #

Update flags count and delete post meta.

Parameters #

  • $post_id
    integer (Required) Post ID.

Source #

File: admin/update.php

	public function flags( $post_id ) {
		$count = get_post_meta( $post_id, '_ap_flag', true );
		ap_set_flag_count( $post_id, $count );
		delete_post_meta( $post_id, '_ap_flag' );
	}

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