golden hour
/home/godaofbq/besthyperbaric.com/wp-content/plugins/oxygen/plugin/tracking
⬆️ Go Up
Upload
File/Folder
Size
Actions
.htaccess
420 B
Del
OK
ajax.php
945 B
Del
OK
base.php
113 B
Del
OK
utils.php
263 B
Del
OK
Edit: ajax.php
<?php namespace Breakdance\Tracking; use function Breakdance\Licensing\Events\log; use function Breakdance\Licensing\Events\getOwauid; add_action('breakdance_loaded', function () { \Breakdance\AJAX\register_handler( 'breakdance_track_amplitude_event', 'Breakdance\Tracking\track_amplitude_event', 'edit', true, [ 'args' => [ 'eventType' => FILTER_SANITIZE_SPECIAL_CHARS, 'eventProperties' => FILTER_UNSAFE_RAW ], 'optional_args' => ['eventProperties'], ] ); }); /** * @param string $event_type * @param string $event_properties * @return void */ function track_amplitude_event($event_type, $event_properties) { /** * @var array */ $event_properties_as_array = json_decode($event_properties, true); log( getOwauid(), $event_type, $event_properties_as_array ); }
Save