Jake Vanderwerf
2026-01-01 07282da9671de8fb2601e9e641decb2655439ad8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
 
if (!defined('ABSPATH')) {
    exit;
}
 
 
function jvbNoSaveIt(int $postID, \WP_Post $post): bool {
    if (!$postID || $postID === 0) {
        return true;
    }
    $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;
}