| | |
| | | { |
| | | $this->cache_name = 'user_content_' . get_current_user_id(); |
| | | parent::__construct(); |
| | | $this->cache->clear(); |
| | | if (JVB_TESTING) { |
| | | $this->cache->clear(); |
| | | } |
| | | |
| | | $this->action = 'dash-'; |
| | | $this->operation_type = 'content_update'; |
| | | add_action('init', [$this, 'registerContentExecutors'], 5); |
| | |
| | | return ['success' => false, 'message' => 'No permission']; |
| | | } |
| | | |
| | | error_log('[Processing Timeline Post...'); |
| | | |
| | | $ignore = ['content', 'user']; |
| | | $this->fields = jvbGetFields($post_data['content']); |
| | | $this->initTimelineFields($post_data['content']); |
| | |
| | | ]); |
| | | |
| | | $prevDate = null; |
| | | |
| | | $latest_date = null; |
| | | $earliest_date = null; |
| | | foreach ($post_data['timeline'] as $order => $timeline) { |
| | | // Get unique fields for this specific timeline entry |
| | | $allowedFields = array_filter($timeline, function ($key) use ($ignore) { |