SARE Coding Standards

  • Follow WP Coding standards as closely as possible.
  • Store times in UTC/GMT format. e.g. date( Y-m-d H:i:s)
  • When creating an object that should match a unique id and the data doesn't exist, we should throw an exception:
    throw new \Exception('Invalid post ID' );

    • See: GMS "POST" class for an example