astra_migrate_meta_layout( mixed $meta_layout )
Migrate old meta layout to new layout.
Description
Parameters
- $meta_layout
-
(mixed) (Required) Meta Layout.
Return
(mixed) new layout.
Source
File: inc/extras.php
function astra_migrate_meta_layout( $meta_layout ) { $new_layout = ''; switch ( $meta_layout ) { case 'boxed-container': $new_layout = 'normal-width-container'; break; case 'content-boxed-container': $new_layout = 'normal-width-container'; break; case 'plain-container': $new_layout = 'normal-width-container'; break; case 'page-builder': $new_layout = 'full-width-container'; break; case 'narrow-container': $new_layout = 'narrow-width-container'; break; default: $new_layout = 'default'; break; } return $new_layout; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |