AnsPress_Admin_Ajax::clear_flag()
Description #
Clear post flags.
Source #
File: admin/ajax.php
public static function clear_flag() {
$post_id = ap_sanitize_unslash( 'post_id', 'p' );
if ( current_user_can( 'manage_options' ) && anspress_verify_nonce( 'clear_flag_' . $post_id ) ) {
ap_delete_flags( $post_id, 'flag' );
echo 0;
}
wp_die();
}
Expand full source code Collapse full source code View on GitHub: admin/ajax.php:62
Add your comment