public static function parse_object_id( $object ) {
		if ( is_numeric( $object ) && $object > 0 ) {
			return (int) $object;
		} elseif ( ! empty( $object->ID ) ) {
			return (int) $object->ID;
		} elseif ( ! empty( $object->term_id ) ) {
			return (int) $object->term_id;
		} elseif ( $object instanceof WP_Object ) {
			return $object->get_id();
		}
	}
public static function parse_object_id( $object ) {
		if ( is_numeric( $object ) && $object > 0 ) {
			return (int) $object;
		} elseif ( ! empty( $object->ID ) ) {
			return (int) $object->ID;
		} elseif ( ! empty( $object->term_id ) ) {
			return (int) $object->term_id;
		} elseif ( $object instanceof WP_Object ) {
			return $object->get_id();
		}
	}
public static function parse_object_id ( $ object ) { if ( is_numeric ( $ object ) && $ object > 0 ) { return ( int ) $ object ; } elseif ( ! empty ( $ object -> ID ) ) { return ( int ) $ object -> ID ; } elseif ( ! empty ( $ object -> term_id ) ) { return ( int ) $ object -> term_id ; } elseif ( $ object instanceof WP_Object ) { return $ object -> get_id ( ) ; } }
Parse the object_id.

@param  mixed $object The object.
@return int|null
Parse the object_id .