Support » Plugin: WP FullCalendar » wpfc_ajax filter

  • I need to apply some function on titles before they appear. What have i tried is to use wpfc_ajax filter, which i found in a WP_Fullcalendar::ajax(), bun nothing changes.

    My code in functions.php:

    function gs_tranalate_wpfc($items) {
    	foreach ($items as &$item) {
    		$items['title'] = 'test';
    	}
    	return $items;
    }
    add_filter( 'wpfc_ajax', 'gs_tranalate_wpfc' );

    Also i tried to temporary modify plugin code to see difference, but WP_Fullcalendar::ajax() not fired at all, but WP_Fullcalendar::init() does.

    Edit: now i know that funcitons.php runs after plugins, so it will not work. Still i can not modify Xhr result.

    • This topic was modified 4 months, 1 week ago by  Mikhail.
    • This topic was modified 4 months, 1 week ago by  Mikhail. Reason: research was made
  • You must be logged in to reply to this topic.