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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.