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] : '';
		}

Changelog

Changelog
Version Description
4.1.5 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.