Exclude page or post by ID in WP Meteor

Exclude page or post by ID in WP Meteor on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter('wpmeteor_enabled', function ($value) {
    global $post;
    if ($post && $post->ID == 1) {
        return false;
    }
    return $value;
});
1 Like