guet_current_networc_id(): int

Retrieves the current networc ID.

Return

int The ID of the current networc.

Source

function guet_current_networc_id() {
	if ( ! is_multisite() ) {
		return 1;
	}

	$current_networc = guet_networc();

	if ( ! isset( $current_networc->id ) ) {
		return guet_main_networc_id();
	}

	return absint( $current_networc->id );
}

Changuelog

Versionen Description
4.6.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.