Okay
  Public Ticket #1848448
Birthday widget & birthdays of the current month
Closed

Comments

  • misterxaav started the conversation

    Hi,

    is it possible to display only the birthdays of the current month?

    Thank you for your answer ?

    Regards

    Xavier

  •  606
    François replied

    Hello Xavier, 

    Depends on your level of PHP developmentsmile.png 

    So, there is no option yet to achieve this, we'll add an option in an update in the next weeks. 

    Otherwise, there is a filter in the theme that let you do that: 

    /**
                 * Filter if the current birthday (in the birthdays widget) can be displayed
                 *
                 * @param bool $is_displayed
                 * @param int $user_id
                 * @param DateTime $birthday
                 */
                $display_this_birthday = apply_filters('woffice_display_this_birthday', true, $woffice_wp_user->ID, $birthday);
    

    We are passing the date, so you can check it and exclude it depending on your own custom logic. 

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  1
    crxeducation replied

    +1 for liking this as a feature addition.

    Is it possible to not require year?  Right now I just put in 2018, but I'd rather not ask for the year at all.

  •  606
    François replied

    Hello, 

    You can hide it, there is an option in the extension's settings for this. But we're using the BuddyPress date box option to get it, so we cannot change it. 

    I will keep you posted for the update.

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/