Group_Meta::check_object_id( int $object_id )

Check that the group ID exists.


Parameters Parameters

$object_id

(int) (Required) Object ID.


Top ↑

Return Return

(int)


Source Source

File: cli/src/group-meta.php

	protected function check_object_id( $object_id ) {
		$fetcher = new Group_Fetcher();
		$group   = $fetcher->get_check( $object_id );

		return $group->id;
	}

Top ↑

User Contributed Notes User Contributed Notes

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