• I am using WP FullCallendar with WP Events Manager and would like to display additional data with the events.

    I see that the calendar is created using AJAX and Java Script. In the php source code there are hooks (e.g. “wpfc_ajax_post” or “wpfc_ajax”) which should make the modification possible, but they don’t work. These hooks are not being called.
    Do I have to edit the Java directly?Or is it possible to override it in the child theme?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    Yes, editing the core files is not recommended you can hook into the wpfc_ajax filter instead. for reference, this is located under wp-fullcalendar/wp-fullcalendar.php

    Thread Starter regnalf

    (@regnalf)

    As i wrote i tried the hooks inside wp-fullcalender but they didn’t change anything!

    i want to hook into this one

    $items[] = apply_filters('wpfc_ajax_post', $item, $post);

    but it the hook isn’t called!

    • This reply was modified 2 years, 8 months ago by regnalf.
    Plugin Support angelo_nwl

    (@angelo_nwl)

    Can you share the code you are using for ‘wpfc_ajax_post’ for us to see?

    Thread Starter regnalf

    (@regnalf)

    add_filter('wpfc_ajax_post', 'my_wpfc_ajax_post', 10, 2);
    function my_wpfc_ajax_post ($item, $post)
    {
    	... modify $item, try to add extra name info ...
    	
    	return $item;
    }
    Plugin Support angelo_nwl

    (@angelo_nwl)

    does it makes any difference changing

    add_filter('wpfc_ajax_post', 'my_wpfc_ajax_post', 10, 2);

    to

    add_filter('wpfc_ajax_post', 'my_wpfc_ajax_post', 100, 2);

    Thread Starter regnalf

    (@regnalf)

    No, because the filter isn’t called at all!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hooks WP FullCalendar’ is closed to new replies.