Actually, the answer was there already. display_post_states filter required $post parameter and Scripts & Style latest version was not providing this. Hence, the error. Actually in the source code, the $post variable is there, so all you need to do is pass it to the filter as the second argument.
https://wordpress.org/support/topic/uncaught-argumentcounterror-too-few-arguments-to-function-3/
Top comments (0)