Jake Vanderwerf
2025-10-20 e729f920139f0c65902be2d6b2c32466b08375e8
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;
}