Astra_Meta_Boxes::register_meta_settings()
Register Post Meta options for react based fields.
Description
Source
File: inc/metabox/class-astra-meta-boxes.php
public function register_meta_settings() {
register_post_meta(
'', // Pass an empty string to register the meta key across all existing post types.
'site-sidebar-layout',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'site-content-layout',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'ast-main-header-display',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'ast-hfb-above-header-display',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'ast-hfb-mobile-header-display',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'site-post-title',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'ast-breadcrumbs-content',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'ast-featured-img',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'footer-sml-layout',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'theme-transparent-header-meta',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'adv-header-id-meta',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'stick-header-meta',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'header-above-stick-meta',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'header-main-stick-meta',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
register_post_meta(
'',
'header-below-stick-meta',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => '__return_true',
)
);
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 3.7.4 | Introduced. |