ap_is_user_flagged( bool|integer $post = null )

Description #

Check if user already flagged a post.

Parameters #

  • $post
    bool | integer (Optional) Post. Default value: null

Source #

File: includes/flag.php

function ap_is_user_flagged( $post = null ) {
	$_post = ap_get_post( $post );

	if ( is_user_logged_in() ) {
		return ap_is_user_voted( $_post->ID, 'flag' );
	}

	return false;
}

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