Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54910, comment 6


Ignore:
Timestamp:
01/26/2022 06:51:48 PM (3 years ago)
Author:
Ov3rfly
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54910, comment 6

    initial v1  
    44Legacy themes should not have to add anything as they most likely never will be updated.
    55
    6 If new themes support new features like FSE or block-templates (see also #54917), they should use [https://developer.wordpress.org/reference/functions/add_theme_support/ add_theme_support()] - that's what this API was made for.
     6If new themes support new features like FSE or block-templates (as in #54917), they should use [https://developer.wordpress.org/reference/functions/add_theme_support/ add_theme_support()] - that's what this API was made for.
    77
     8> ... it would be beneficial to allow theme developers to organise their directories based on what suits them ...
     9The existing API for theme features can handle things like that already, e.g. like this:
     10
     11{{{
     12add_theme_support( 'full-site-editing', array(
     13    'templates_folder' => 'site_templates',
     14) );
     15}}}