Astra_Starter_Content::starter_meta( mixed $value, int $post_id, string $meta_key )
Load default starter meta.
Description
Parameters
- $value
-
(mixed) (Required) Value.
- $post_id
-
(int) (Required) Post id.
- $meta_key
-
(string) (Required) Meta key.
Return
(string) Meta value.
Source
File: inc/compatibility/class-astra-starter-content.php
public function starter_meta( $value, $post_id, $meta_key ) {
if ( get_post_type( $post_id ) !== 'page' ) {
return $value;
}
if ( 'site-content-layout' === $meta_key ) {
return 'plain-container';
}
if ( 'theme-transparent-header-meta' === $meta_key ) {
return 'enabled';
}
if ( 'site-sidebar-layout' === $meta_key ) {
return 'no-sidebar';
}
if ( 'site-post-title' === $meta_key ) {
return 'disabled';
}
return $value;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.0.2 | Introduced. |