AdminPageFramework_FieldType_posttype::_getPostTypeArrayForChecklist PHP Метод

_getPostTypeArrayForChecklist() приватный Метод

private _getPostTypeArrayForChecklist ( $aSlugsToRemove, $asQueryArgs = [], $sOperator = 'and' )
    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));
    }
AdminPageFramework_FieldType_posttype