private function _getPostTypeArrayForChecklist($aSlugsToRemove, $asQueryArgs = array(), $sOperator = 'and') { $_aPostTypes = array(); foreach (get_post_types($asQueryArgs, 'objects') as $_oPostType) { if (isset($_oPostType->name, $_oPostType->label)) { $_aPostTypes[$_oPostType->name] = $_oPostType->label; } } return array_diff_key($_aPostTypes, array_flip($aSlugsToRemove)); }