Astra_Ext_Nav_Menu_Loader::get_post_meta( array $post_meta, string $key )
Parse post meta of particular passed key & return its value.
Description
Parameters
- $post_meta
-
(array) (Required) Post meta of megamenu.
- $key
-
(string) (Required) Meta item key.
Return
(mixed) value of meta key.
Source
File: addons/nav-menu/classes/class-astra-ext-nav-menu-loader.php
public static function get_post_meta( $post_meta, $key ) { return isset( $post_meta[ $key ][0] ) ? $post_meta[ $key ][0] : ''; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.1.5 | Introduced. |