wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_create_initial_post_meta › WordPress Function
Depuis6.3.0
Dépréciéen/a
› wp_create_initial_post_meta ( Pas de paramètres )
| Liens: | |
| Défini(e) dans: |
|
| Codex: | |
| Changelog: |
|
Registers any additional post meta fields.
Source
function wp_create_initial_post_meta() {
register_post_meta(
'wp_block',
'wp_pattern_sync_status',
array(
'sanitize_callback' => 'sanitize_text_field',
'single' => true,
'type' => 'string',
'show_in_rest' => array(
'schema' => array(
'type' => 'string',
'enum' => array( 'partial', 'unsynced' ),
),
),
)
);
}