tribe_get_linked_day parameter format?

Home Forums Calendar Products Events Calendar PRO tribe_get_linked_day parameter format?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18642
    Jesse
    Member

    I’m wondering in what format the two strings in this function have to be in:

    tribe_get_linked_day($date, $day)

    $date and $day

    It doesn’t say in the comments in the original file (template-tags.php in PRO) or in the documentation.

    Thanks! Original function below

    /**
    * Day View Link
    *
    * Get a link to day view
    *
    * @param string $date
    * @param string $day
    * @return string HTML linked date
    * @since 2.0
    */
    function tribe_get_linked_day($date, $day) {
    $return = ”;
    $return .= ““;
    $return .= $day;
    $return .= “
    “;
    return apply_filters(‘tribe_get_linked_day’, $return);
    }

    #18644
    Jesse
    Member

    Day is just the date with no leading zeros. I.e. ‘5’ for May 5th. Date needs to be a string in YYYY-MM-DD format (Y-m-d)

    Please put in PHP comments and documentation.

    thanks!

    #18651
    Jonah
    Participant

    Thanks for pointing this out Jesse, i’ll update the documentation and create a ticket to update the plugin PHP comment.

    – Jonah

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘tribe_get_linked_day parameter format?’ is closed to new replies.