Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default selected check category could be customizable using filter #494

Closed
ernilambar opened this issue Jul 5, 2024 · 3 comments · Fixed by #509
Closed

Default selected check category could be customizable using filter #494

ernilambar opened this issue Jul 5, 2024 · 3 comments · Fixed by #509
Labels
[Type] Enhancement A suggestion for improvement of an existing feature

Comments

@ernilambar
Copy link
Member

Currently default selected category is set to plugin_repo. It would be great if we could provide filter for that so that I can assign my custom category/categories as default.

$user_enabled_categories = get_user_setting( 'plugin_check_category_preferences', 'plugin_repo' );
@ernilambar ernilambar added the [Type] Enhancement A suggestion for improvement of an existing feature label Jul 5, 2024
@davidperezgar
Copy link
Member

Yes, why not?

@davidperezgar
Copy link
Member

I am not being able to register my own custom check categories in which I want to register my custom checks.

Currently categories are hardcoded.

public static function get_categories() {
return array(
self::CATEGORY_GENERAL,
self::CATEGORY_PLUGIN_REPO,
self::CATEGORY_SECURITY,
self::CATEGORY_PERFORMANCE,
self::CATEGORY_ACCESSIBILITY,
);
}

@ernilambar
Copy link
Member Author

#508 and #509 should fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement of an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants