Hello
here is a translation-Issue
“Kalender mit Ereignissem”
https://www.flugtraeumer.de/events
How to fix that??
This code does NOT work:
add_filter('avf_title_args', 'avf_title_args_mod', 99, 2);
function avf_title_args_mod($args,$id)
{
if ( $args['title'] == 'Calendar of Events' )
{
$args['title'] = 'Veranstaltungskalender';
}
return $args;
}
Hey Flugtraeumer,
Thank you for using Enfold.
You can try this code instead.
add_filter('avf_title_args', 'avf_title_args_mod', 99, 2);
function avf_title_args_mod($args,$id)
{
if ( $args['title'] == 'Kalender mit Ereignissem' )
{
$args['title'] = 'Veranstaltungskalender';
}
return $args;
}
Best regards,
Ismael
Hi Ismael
thanx – that worked.
Question: What does these two numbers in the code stands for?
99, 2
Kind regards danny
Hi,
That is the filter execution priority and the accepted arguments or parameters, in this case $args and $id.
// https://developer.wordpress.org/reference/functions/add_filter/
Best regards,
Ismael