Jake Vanderwerf
2025-09-30 6a627f09d33967ca7fa5b6d939a9347d8223a1e6
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;
}