ap_add_flag( integer $post_id, integer $user_id = false )
Description #
Add flag vote data to ap_votes table.
Parameters #
- $post_idinteger (Required) Post ID.
- $user_idinteger (Optional) User ID. Default value: false
Source #
File: includes/flag.php
function ap_add_flag( $post_id, $user_id = false ) { if ( false === $user_id ) { $user_id = get_current_user_id(); } $inserted = ap_vote_insert( $post_id, $user_id, 'flag' ); return $inserted; }
Expand full source code Collapse full source code View on GitHub: includes/flag.php:82
Add your comment