• Hello,

    When I add translation hook in my childm theme my website is broken can you please see attachement?
    Attachement: https://prnt.sc/TgWh-oHD8G15

    I added this filter

    add_filter('gettext', 'GP_remove_comments_are_closed_here', 20, 3);

    can you please help me to solved this error
    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author John Havlik

    (@mtekk)

    You are likely breaking a translation string for Breadcrumb NavXT/adminKit, hence the error. I don’t know what theGP_remove_comments_are_closed_here function looks like, but my guess is you’re returning NULL (or simply failing to return anything) on the Breadcrumb NavXT translation strings. Generally speaking, filters should not break the API (you should not be returning NULL for something that must return a string).

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.