This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type Event = { | |
[key: string]: string | undefined | number | null | boolean | object; | |
id: number; | |
site_id: number; | |
date: number; | |
user: { | |
user_id: string; | |
visitor_profile?: { | |
email: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global $wp_filesystem; | |
// If not already set, initialize the WP filesystem. | |
if ( empty( $wp_filesystem ) ) { | |
require_once ABSPATH . '/wp-admin/includes/file.php'; | |
WP_Filesystem(); | |
} | |
$uploads_dir = wp_get_upload_dir()['basedir'] . '/movie-library/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// class to handle coordinates | |
class Coordinate { | |
constructor(X, Y) { | |
this._X = X; | |
this._Y = Y; | |
} | |
print() { | |
console.log(`(${this._X}, ${this._Y})`); | |
} |