public function has_product_browser($value) { if ($value) { return $value; } $meta = serialize(get_post_meta(get_the_ID(), 'env_composer')); //die(print_r(serialize($meta))); // not exactly the intended usage, but quite simple and still works // $meta is a serialized array that has the actual content // a right way is to walk through the structure and run has_shortcode against all fields $result = ecwid_content_has_productbrowser($meta); return $result; }
public function has_product_browser($value) { if ($value) { return $value; } $meta = get_post_meta(get_the_ID(), 'mfn-page-items'); if (is_array($meta)) { $meta = base64_decode($meta[0]); // not exactly the intended usage, but quite simple and still works // $meta is a serialized array that has the actual content // a right way is to walk through the structure and run has_shortcode against all fields $result = ecwid_content_has_productbrowser($meta); } return $result; }