The Hub Client plugin and Cornerstone

WPMU DEV’s Hub Client plugin is conflicting with Cornerstone.

The page used for The Hub Client cannot be edited and should probably be excluded from even showing up at all in the page selector in Cornerstone.

What’s the slug? If it’s unique enough we can have a default hide list, or I can figure out a way for you to add to an “ignore” list.

The slug is variable since you get to pick the page for the Hub to appear on. Mine is site-hub.

Thanks for taking a look!

Going to be something like this to hide a certain document. I’ll let you know if this changes. Surprised this feature didn’t exist already.

add_filter('cs_document_list_ignore', function($skip) {
    $skip[] = 3040; // post_id to ignore
    return $skip;
});
1 Like

Thanks for that Charlie!

1 Like

The filter works. Thanks for adding it!

Though on the post edit screen there’s still the Pro editor tab showing. Perhaps that could be removed as well?

Yes we can do that. You’re referring to the “Edit with Cornerstone” button right when on the pages list?

1 Like

Sorry, I was referring to the Cornerstone tab here:
cornerstone-tab-editor

But yeah, the “Edit with Cornerstone” link on the pages list might as well be included as well :slight_smile: