public function get_custom_field_by_name($name_custom_field, $post_type){
    global $wpdb;

    $query = sprintf(
      'SELECT * FROM %s WHERE name = "%s" AND post_type = "%s" ',
      MF_TABLE_CUSTOM_FIELDS,
      $name_custom_field,
      $post_type
    );
    $field = $wpdb->get_row( $query, ARRAY_A);
    return $field;
  }