{"action":"opened","issue":{"url":"https://api.github.com/repos/Ramoonus/Powerpack/issues/64","repository_url":"https://api.github.com/repos/Ramoonus/Powerpack","labels_url":"https://api.github.com/repos/Ramoonus/Powerpack/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/Ramoonus/Powerpack/issues/64/comments","events_url":"https://api.github.com/repos/Ramoonus/Powerpack/issues/64/events","html_url":"https://github.com/Ramoonus/Powerpack/issues/64","id":169573519,"number":64,"title":"WooCommerce-Category-Checklist-Expander","user":{"login":"Ramoonus","id":77956,"avatar_url":"https://avatars.githubusercontent.com/u/77956?v=3","gravatar_id":"","url":"https://api.github.com/users/Ramoonus","html_url":"https://github.com/Ramoonus","followers_url":"https://api.github.com/users/Ramoonus/followers","following_url":"https://api.github.com/users/Ramoonus/following{/other_user}","gists_url":"https://api.github.com/users/Ramoonus/gists{/gist_id}","starred_url":"https://api.github.com/users/Ramoonus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ramoonus/subscriptions","organizations_url":"https://api.github.com/users/Ramoonus/orgs","repos_url":"https://api.github.com/users/Ramoonus/repos","events_url":"https://api.github.com/users/Ramoonus/events{/privacy}","received_events_url":"https://api.github.com/users/Ramoonus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-05T09:59:30Z","updated_at":"2016-08-05T09:59:30Z","closed_at":null,"body":"`<?php\r\n/*\r\nPlugin Name: WooCommerce Category Checklist Expander\r\nDescription: Expands the WordPress Product categories and brands\r\nVersion: 1.0.0\r\nPlugin URI: http://www.ramoonus.nl/wordpress/category-checklist-expander/\r\nAuthor: Ramon \"Ramoonus\" van Belzen\r\nAuthor URI: http://www.ramoonus.nl\r\n*/\r\n\r\n/**\r\n * Category Expander\r\n *\r\n * Expands category and brands\r\n *\r\n * @since 1.0.0\r\n * @todo check if brands is  active\r\n * @version 1.0.0\r\n * @return void\r\n */\r\nfunction rw_woocommerce_category_checklist_expander_css() {\r\n\r\n    /**\r\n     * Completely rewritten from $pagenow to get_current_screen\r\n     *\r\n     * @since 1.0.0\r\n     */\r\n    $screen = get_current_screen()\r\n    if ( ! $screen->post_type == 'product' {\r\n        return;\r\n    }\r\n\r\n\t/**\r\n\t * Actual CSS which does the work\r\n\t */\r\n\t?>\r\n\t<style>\r\n\t\t#product_catdiv div.tabs-panel,\r\n\t\t#product_branddiv div.tabs-panel {\r\n\t\t\theight: auto;\r\n\t\t\tmax-height: none;\r\n\t\t}\r\n\t</style>\r\n<?php\r\n}\r\n\r\nadd_action( 'admin_head', 'rw_woocommerce_category_checklist_expander_css' );`"}}
{"actor":{"display_login":"Ramoonus"}}