Automattic / Automattic/hidden-posts

Filter to disable for certain custom post types

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
11
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Something like:

```
static function enabled() {
return (bool) apply_filters( 'hidden_posts_enabled', true );
}
```

Checks for `enabled()` in:
- `pre_get_posts()`
- `hidden_checkbox()`
- `save_meta()`

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the plugin code defining enabled(), then inspect its checks in pre_get_posts(), hidden_checkbox(), and save_meta(). Add a hidden_posts_enabled filter that can be disabled for selected custom post types, and verify that all three paths honor the disabled result.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.