Home › Forums › Bug Reports › Missing Arguments in default_page_template_title › Reply To: Missing Arguments in default_page_template_title
__('Default Template', 'acf')
is there to translate the text value. ACF is not passing a $context, which is optional. You need to assume a default or ignore that parameter.
add_filter('default_page_template_title', 'mg_post_template_default_title', 10, 1);
OR
function mg_post_template_default_title($label, $context="") {
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.