Zodiac1978 / wp-search-ignore-block-names

Modifies the native search to ignore block editor comments
https://wordpress.org/plugins/ignore-block-name-in-search/
GNU General Public License v2.0
4 stars 3 forks source link

Adding a toggle for the internal search in admin area #1

Closed Zodiac1978 closed 1 year ago

Zodiac1978 commented 1 year ago

Looks like an excellent solution. Does this filter backend searches as well? I find that searching for blocks can be quite useful there. Might be worth adding an is_admin()... Source: Roy Tanck (@roytanck) on Twitter

To allow searching for blocks as well, we could add a toggle to enable/disable searching for block comments.

Zodiac1978 commented 1 year ago

https://developer.wordpress.org/reference/functions/add_screen_option/

Zodiac1978 commented 1 year ago

https://humanmade.com/2022/09/28/extend-and-create-screen-options-in-the-wordpress-admin/

Zodiac1978 commented 1 year ago

It looks like all those tutorials are building a complete new screen options area for your own admin page. Extending the screen options for existing admin pages seems not covered well in documentation.

As you can always disable the plugin and get the same feature and screen options are meant for layout and not so much for features, I will close this.