Jake Vanderwerf
2025-09-30 2cb91676044ecd0abd9c45b4835abb8b0d042312
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
 
if (!defined('ABSPATH')) {
    exit;
}
 
 
function jvbNoSaveIt(int $postID, \WP_Post $post): bool {
    $postType = jvbNoBase($post->post_type);
    if (!array_key_exists($postType, JVB_CONTENT)){
        return true;
    }
    if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return true;
    if (wp_is_post_revision($postID)) return true;
 
    return false;
}