{"action":"created","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/4516","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/4516/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/4516/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/4516/events","html_url":"https://github.com/woothemes/woocommerce/issues/4516","id":25704352,"number":4516,"title":"please add filter wc_get_template_part()","user":{"login":"a3rev","id":1533094,"avatar_url":"https://avatars.githubusercontent.com/u/1533094?v=3","gravatar_id":"","url":"https://api.github.com/users/a3rev","html_url":"https://github.com/a3rev","followers_url":"https://api.github.com/users/a3rev/followers","following_url":"https://api.github.com/users/a3rev/following{/other_user}","gists_url":"https://api.github.com/users/a3rev/gists{/gist_id}","starred_url":"https://api.github.com/users/a3rev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3rev/subscriptions","organizations_url":"https://api.github.com/users/a3rev/orgs","repos_url":"https://api.github.com/users/a3rev/repos","events_url":"https://api.github.com/users/a3rev/events{/privacy}","received_events_url":"https://api.github.com/users/a3rev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-01-16T05:34:34Z","updated_at":"2015-05-08T13:55:13Z","closed_at":"2014-01-20T12:12:48Z","body":"Hi guys - is there any reason why in version 2.1 you have added filter support for wc_locate_template() but no filter support for wc_get_template_part() \r\n\r\nPerhaps just an oversight?\r\n\r\nIt makes life difficult if cannot filter that function in certain uses. \r\n\r\n // If template file doesn't exist, look in yourtheme/slug.php and yourtheme/woocommerce/slug.php\r\n if ( !$template )\r\n  $template = locate_template( array ( \"{$slug}.php\", WC()->template_path() . \"{$slug}.php\" ) );\r\n  \r\n if ( $template )\r\n  load_template( $template, false );\r\n}\r\n\r\nCould I suggest adding this filter\r\n$template = apply_filters('wc_get_template_part', $template, $slug, $name );\r\n\r\nbelow\r\n $template = locate_template( array ( \"{$slug}.php\", WC()->template_path() . \"{$slug}.php\" ) );\r\n\r\nAny chance of having that filter added to version 2.1 ?"},"comment":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/comments/100239534","html_url":"https://github.com/woothemes/woocommerce/issues/4516#issuecomment-100239534","issue_url":"https://api.github.com/repos/woothemes/woocommerce/issues/4516","id":100239534,"user":{"login":"vimes1984","id":2351665,"avatar_url":"https://avatars.githubusercontent.com/u/2351665?v=3","gravatar_id":"","url":"https://api.github.com/users/vimes1984","html_url":"https://github.com/vimes1984","followers_url":"https://api.github.com/users/vimes1984/followers","following_url":"https://api.github.com/users/vimes1984/following{/other_user}","gists_url":"https://api.github.com/users/vimes1984/gists{/gist_id}","starred_url":"https://api.github.com/users/vimes1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimes1984/subscriptions","organizations_url":"https://api.github.com/users/vimes1984/orgs","repos_url":"https://api.github.com/users/vimes1984/repos","events_url":"https://api.github.com/users/vimes1984/events{/privacy}","received_events_url":"https://api.github.com/users/vimes1984/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T13:55:13Z","updated_at":"2015-05-08T13:55:13Z","body":"I second this I'm running into just @a3rev's issue..."}}