Occurrence::get_post_id_attribute( $value )

Cast the value of the property post_id if present to an integer.


Parameters

$value

(Required)


Top ↑

Return

(int|null)


Top ↑

Source

File: src/Events/Custom_Tables/V1/Models/Occurrence.php

	public function get_post_id_attribute( $value ) {
		return $value ? (int) $value : null;
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.