protected function override_labels( Papi_Entry_Type $entry_type ) {
		global $wp_post_types, $wp_taxonomies;

		if ( $entry_type->get_type() === 'taxonomy' ) {
			$meta_type_value = papi_get_taxonomy();
		} else {
			$meta_type_value = papi_get_post_type();
		}

		if ( empty( $meta_type_value ) || ( ! isset( $wp_post_types[$meta_type_value] ) && ! isset( $wp_taxonomies[$meta_type_value] ) ) ) {
			return;
		}

		foreach ( $entry_type->get_labels() as $key => $value ) {
			if ( empty( $value ) ) {
				continue;
			}

			if ( $entry_type->get_type() === 'taxonomy' && isset( $wp_taxonomies[$meta_type_value]->labels->$key ) ) {
				$wp_taxonomies[$meta_type_value]->labels->$key = $value;
			} else if ( isset( $wp_post_types[$meta_type_value]->labels->$key ) ) {
				$wp_post_types[$meta_type_value]->labels->$key = $value;
			}
		}
	}
protected function override_labels( Papi_Entry_Type $entry_type ) {
		global $wp_post_types, $wp_taxonomies;

		if ( $entry_type->get_type() === 'taxonomy' ) {
			$meta_type_value = papi_get_taxonomy();
		} else {
			$meta_type_value = papi_get_post_type();
		}

		if ( empty( $meta_type_value ) || ( ! isset( $wp_post_types[$meta_type_value] ) && ! isset( $wp_taxonomies[$meta_type_value] ) ) ) {
			return;
		}

		foreach ( $entry_type->get_labels() as $key => $value ) {
			if ( empty( $value ) ) {
				continue;
			}

			if ( $entry_type->get_type() === 'taxonomy' && isset( $wp_taxonomies[$meta_type_value]->labels->$key ) ) {
				$wp_taxonomies[$meta_type_value]->labels->$key = $value;
			} else if ( isset( $wp_post_types[$meta_type_value]->labels->$key ) ) {
				$wp_post_types[$meta_type_value]->labels->$key = $value;
			}
		}
	}
protected function override_labels ( Papi_Entry_Type $ entry_type ) { global $ wp_post_types , $ wp_taxonomies ; if ( $ entry_type -> get_type ( ) === 'taxonomy' ) { $ meta_type_value = papi_get_taxonomy ( ) ; } else { $ meta_type_value = papi_get_post_type ( ) ; } if ( empty ( $ meta_type_value ) || ( ! isset ( $ wp_post_types [ $ meta_type_value ] ) && ! isset ( $ wp_taxonomies [ $ meta_type_value ] ) ) ) { return ; } foreach ( $ entry_type -> get_labels ( ) as $ key => $ value ) { if ( empty ( $ value ) ) { continue ; } if ( $ entry_type -> get_type ( ) === 'taxonomy' && isset ( $ wp_taxonomies [ $ meta_type_value ] -> labels -> $ key ) ) { $ wp_taxonomies [ $ meta_type_value ] -> labels -> $ key = $ value ; } else if ( isset ( $ wp_post_types [ $ meta_type_value ] -> labels -> $ key ) ) { $ wp_post_types [ $ meta_type_value ] -> labels -> $ key = $ value ; } } }
Override labels with labels from the entry type.

@param Papi_Entry_Type $entry_type
Override labels with labels from the entry type .