Site icon Hip-Hop Website Design and Development

Save occasion change in WP Fullcalendar: editable + draggable

Plugin: https://wordpress.org/plugins/wp-fullcalendar/

I take advantage of a plugin to show my “custom_post_type” occasions.

  1. I’ve modified the “wp-fullcalendar.php” plugin file in a number of locations to indicate the beginning and finish time of the “custom_fields” occasion.
  2. I additionally edited the “inline.js” file within the “includes / js /” folder to make the calendar “editable” and “dragable”.
  3. However I CAN’T set the calendar to avoid wasting the change to my “custom_post_type” occasion once I make a change by transferring the occasion on the calendar.

I learn the documentation for the JS plugin “calendar.io”, however I can’t insert the code into the already completed plugin “WP Fullcalendar”.

Will you assist please? Thanks!!!

These are my edits to the plugin code

wp-fullcaleendar.php

/*
$post_date = substr($post->post_date, 0, 10);
    $post_timestamp = strtotime($post->post_date);
    */
    $post_date = substr($post->_EventStartDate, 0, 10);
    $post_timestamp = strtotime($post->_EventStartDate);
    
    $post_end_date = substr($post->_EventEndDate, 0, 10);
    $post_end_timestamp = strtotime($post->_EventEndDate);

embody/js/inline.js

editable: true,
droppable: true,
eventOverlap: true,
dayMaxEvents: true,

I would like to avoid wasting my appointment as quickly as I drag its location on my calendar or once I change its period. And I simply cannot do that. The supply of the code, methods to obtain this, is right here:

https://fullcalendar.io/docs/event-dragging-resizing