AnsPress_Admin_Ajax::ap_delete_flag()
Description #
Delete post flag
Source #
File: admin/ajax.php
public static function ap_delete_flag() { $post_id = (int) ap_sanitize_unslash( 'id', 'p' ); if ( anspress_verify_nonce( 'flag_delete' . $post_id ) && current_user_can( 'manage_options' ) ) { ap_set_flag_count( $post_id, 0 ); } wp_die(); }
Expand full source code Collapse full source code View on GitHub: admin/ajax.php:47
Add your comment