ap_is_user_flagged( bool|integer $post = null )
Description #
Check if user already flagged a post.
Parameters #
- $postbool | 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; }
Expand full source code Collapse full source code View on GitHub: includes/flag.php:120
Add your comment