// закрепить пост
if (isset($_POST['sticy_post'])) {
if( wp_verify_nonce( $_POST['sticy_post'], 'sticy_post' ) ) {
$user_ID = get_current_user_id();
$count = get_user_meta( $user_ID, 'limit_post_sticy', true )[0];
update_user_meta($user_ID, 'limit_post_sticy', $count + 1);
//update_post_meta( $_POST['postid'], '_extra_featured_post', '0', true );
}
}
<form method="POST" action="" class="sticy_post-form" style="display: inline-block;float: right;">
<input type="hidden" name="sticy_post" value="b1a2bc6f85">
<input type="hidden" name="postid" value="1538">
<input type="submit" value="закрепить" title="Delete">
</form>