-
Notifications
You must be signed in to change notification settings - Fork 7
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
Curating the Editor Experience: Tips & Tricks #276
Comments
The first draft is ready for review here: https://docs.google.com/document/d/1TrvgGtfthBMv-3nQgqHjizd370ROTcEVmG4Y9KQWyAE/edit |
Good job, @ndiego. First review finished. If you want to try a shorter code example for the duotone filter, here's a quick and untested idea. Your code looks OK, though. function example_enable_duotone_to_media_text_blocks( $args, $block_type ) {
// Only apply the filter to Media & Text blocks.
if ( 'core/media-text' !== $block_type ) {
return $args;
}
$args['supports'] ??= [];
$args['supports']['filter'] ??= [];
$args['supports']['filter']['duotone'] = true;
$args['selectors'] ??= [];
$args['selectors']['filter'] ??= [];
$args['selectors']['filter']['duotone'] = '.wp-block-media-text .wp-block-media-text__media';
return $args;
}
add_filter( 'register_block_type_args', 'example_enable_duotone_to_media_text_blocks', 10, 2 ); |
Code works great, thanks! Much simpler. |
I am done with the second review and would say it's ready to be published. Fabulous article again @ndiego Pre-publishing checklist: (updated 1/29/2024)
Post-publishing checklist
|
Post has been published: https://developer.wordpress.org/news/2024/07/04/15-ways-to-curate-the-wordpress-editing-experience/ Social copy:
|
social scheduled for July 26 |
Discussed in #262
Originally posted by ndiego May 6, 2024
The title is still TBD, but the idea of this article will be to showcase the many lesser known ways you can curate the Editing experience in WordPress. We already have a few articles on this topic that cover bigger topics like client-side and server-side filtering, but I think it would be fun to showcase ~10 real-world examples and then directs the reader back to the official documentation and/or other related articles.
This topic idea corresponds with ongoing work to improve the Curating the Editor Experience section of the Block Editor Handbook.
The text was updated successfully, but these errors were encountered: