This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*This will use the metadata from a shift page created using Employee Scheduler (Shiftee) and create an iCal link with event*/ | |
// Add a custom endpoint "calendar" | |
function add_calendar_feed() | |
{ | |
add_feed('calendar', 'export_ics'); | |
// Only uncomment these 2 lines the first time you load this script, to update WP rewrite rules |
NewerOlder