{"action":"created","issue":{"url":"https://api.github.com/repos/wcvendors/wcvendors/issues/218","labels_url":"https://api.github.com/repos/wcvendors/wcvendors/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/wcvendors/wcvendors/issues/218/comments","events_url":"https://api.github.com/repos/wcvendors/wcvendors/issues/218/events","html_url":"https://github.com/wcvendors/wcvendors/issues/218","id":113231547,"number":218,"title":"More filter woes: wcv_product_commission_tab ","user":{"login":"ontiuk","id":11772623,"avatar_url":"https://avatars.githubusercontent.com/u/11772623?v=3","gravatar_id":"","url":"https://api.github.com/users/ontiuk","html_url":"https://github.com/ontiuk","followers_url":"https://api.github.com/users/ontiuk/followers","following_url":"https://api.github.com/users/ontiuk/following{/other_user}","gists_url":"https://api.github.com/users/ontiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ontiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ontiuk/subscriptions","organizations_url":"https://api.github.com/users/ontiuk/orgs","repos_url":"https://api.github.com/users/ontiuk/repos","events_url":"https://api.github.com/users/ontiuk/events{/privacy}","received_events_url":"https://api.github.com/users/ontiuk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wcvendors/wcvendors/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-25T15:12:07Z","updated_at":"2015-12-16T23:09:10Z","closed_at":null,"body":"Hi\r\n\r\nMore hook trigger issues: wcv_product_commission_tab (filter)\r\n\r\nTrying to get this to fire, but it's not working. Problem is that whatever I try to do to get the filter added it's always done after the filter is applied.\r\n\r\nRoot of the problem may be that you're using plugins_loaded to load all of the plugins dependencies and core files. Wrapped in a few class constructors are apply_filter calls that are automatically called then, and as plugins_loaded is called before any theme hooks then they'll never be added to the stack before the plugins_loaded action is fired.\r\n\r\nNot particularly good practice to do this. I know a lot of developers to, myself included, but these tend to be post install tidy-up requirements and not core file install.\r\n\r\nMight be a need to revisit how initiation is done? Or at least for any filters/actions applied in constructs wrap them in action calls for later in the stack such as init / admin_init, so any theme functions.php actions / filter calls can be loaded.\r\n\r\nThanks "},"comment":{"url":"https://api.github.com/repos/wcvendors/wcvendors/issues/comments/165281729","html_url":"https://github.com/wcvendors/wcvendors/issues/218#issuecomment-165281729","issue_url":"https://api.github.com/repos/wcvendors/wcvendors/issues/218","id":165281729,"user":{"login":"digitalchild","id":909468,"avatar_url":"https://avatars.githubusercontent.com/u/909468?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalchild","html_url":"https://github.com/digitalchild","followers_url":"https://api.github.com/users/digitalchild/followers","following_url":"https://api.github.com/users/digitalchild/following{/other_user}","gists_url":"https://api.github.com/users/digitalchild/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalchild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalchild/subscriptions","organizations_url":"https://api.github.com/users/digitalchild/orgs","repos_url":"https://api.github.com/users/digitalchild/repos","events_url":"https://api.github.com/users/digitalchild/events{/privacy}","received_events_url":"https://api.github.com/users/digitalchild/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T23:09:10Z","updated_at":"2015-12-16T23:09:10Z","body":"Have you got some sample code I can use for testing to see if I can resolve this? "}}