PHP templateでは、パスワード保護関連はテンプレートが責任を持たなければならない
<?php if( !post_password_required( $post->ID ) ) : ?>
ここに本文部分のコードを記述します。
<php else: ?>
<php echo get_the_password_form(); ?>
<php endif; ?>
変数名の変更
–wp–custom–width–content to –wp–style–global–content-size
–wp–custom–width–wide to –wp–style–global–wide-size
非同期パターン
非同期パターン テスト3
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"styles": {
"core/paragraph": {
"typography": {
"textColumns":"3"
}
}
}
}
p{
column-count: 3;
}
<!-- wp:code {"backgroundColor":"contrast","textColor":"vivid-cyan-blue"} -->
<pre class="wp-block-code has-vivid-cyan-blue-color has-contrast-background-color has-text-color has-background"><code>{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"styles": {
"core/paragraph": {
"typography": {
"textColumns":"3"
}
}
}
}</code></pre>
<!-- /wp:code -->
function wp_get_post_content_block_attributes() {
global $post_ID;
...
}
Prepends a sub-selector to an existing one.
WP_Theme_JSON::append_to_selector()
convert_custom_properties()
resolve_custom_css_format()
`var:preset|color|vivid-green-cyan` becomes `var(--wp--preset--color--vivid-green-cyan)`.
<!-- wp:code {"style":{"elements":{"link":{"color":{"text":"var:preset|color|light-green-cyan"}}}},"backgroundColor":"black","textColor":"light-green-cyan"} -->
https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-theme-json.php
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa