Update variable value via add_filter

Filters only allow you to directly modify the first value passed to them. In your case, that’s null. If you shifted view_slug up a place, it would be available to filters using your events_view_html tag. add_filter( ‘events_view_html’, ‘my_callback’, 10, 3); // passing 3 args to the callback, assuming you need them for something. function my_callback( … Read more

Is hint for translator compulsory while internationalizing a string containing variables?

The notes to translators aren’t required, as far as I can tell, but they will definitely help anyone out who’s trying to translate your plugin. You might want to think of them as best practices rather than requirements. As to your second question: Since WordPress 4.6 translations now take translate.wordpress.org as priority and so plugins … Read more