/**
  * Helper function that fetches all meta values with a specific key (cross post)
  *
  */
 private function get_meta_values($key = '_avia_builder_template_%')
 {
     global $wpdb;
     if (empty($key)) {
         return;
     }
     $compare_by = strpos($key, '%') !== false ? "LIKE" : "=";
     $id = AviaStoragePost::get_custom_post('template_builder_snippets');
     $r = $wpdb->get_col($wpdb->prepare("\n                SELECT meta_value FROM {$wpdb->postmeta}\n                WHERE  meta_key {$compare_by} '%s'\n                AND post_id = '%s'\n            ", $key, $id));
     return $r;
 }