{"action":"closed","issue":{"url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/739","repository_url":"https://api.github.com/repos/WebDevStudios/CMB2","labels_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/739/comments","events_url":"https://api.github.com/repos/WebDevStudios/CMB2/issues/739/events","html_url":"https://github.com/WebDevStudios/CMB2/issues/739","id":177226852,"number":739,"title":"cmb2_admin_init For Custom Post Types","user":{"login":"yehiasalam","id":201734,"avatar_url":"https://avatars.githubusercontent.com/u/201734?v=3","gravatar_id":"","url":"https://api.github.com/users/yehiasalam","html_url":"https://github.com/yehiasalam","followers_url":"https://api.github.com/users/yehiasalam/followers","following_url":"https://api.github.com/users/yehiasalam/following{/other_user}","gists_url":"https://api.github.com/users/yehiasalam/gists{/gist_id}","starred_url":"https://api.github.com/users/yehiasalam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yehiasalam/subscriptions","organizations_url":"https://api.github.com/users/yehiasalam/orgs","repos_url":"https://api.github.com/users/yehiasalam/repos","events_url":"https://api.github.com/users/yehiasalam/events{/privacy}","received_events_url":"https://api.github.com/users/yehiasalam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-09-15T16:40:25Z","updated_at":"2016-10-26T14:05:16Z","closed_at":"2016-10-26T14:05:16Z","body":"Hi,\r\n\r\nSo assuming I have 2 or more custom post types, im loading the action in my bootstrap class like this\r\n\r\n```\r\n\t\t$this->loader->add_action( 'cmb2_admin_init', $plugin_push , 'setup_metaboxes_cmb2', 10 , 5 );\r\n\t\t$this->loader->add_action( 'cmb2_admin_init', $plugin_featured_slider , 'setup_metaboxes_cmb2', 10 , 5 );\r\n```\r\n\r\nThe problem is both setup_metaboxes_cmb2 functions (in two different classes) are executed on every page in the admin part. How can I just hook it to a custom page type, similiar to save_post_custompost native wordpress action is doing.\r\n\r\n"}}
{"actor":{"display_login":"jtsternberg"}}