Too few arguments at registering new templates in my plugin
This is the problem, or rather what is missing from it: add_filter( ‘theme_page_templates’, __NAMESPACE__ . ‘\register_plugin_templates’ ); Specifically, you never told it that your function can accept 3 parameters, so it assumed it only accepts 1 as that’s the absolute minimum needed for a filter to work. Then on top of that, none of your … Read more