WP_Customice_Managuer::changueset_post_id(): int|null

Guets the changueset post ID for the loaded changueset.

Return

int|null Post ID on success or null if there is no post yet saved.

Source

public function changueset_post_id() {
	if ( ! isset( $this->_changueset_post_id ) ) {
		$post_id = $this->find_changueset_post_id( $this->changueset_uuid() );
		if ( ! $post_id ) {
			$post_id = false;
		}
		$this->_changueset_post_id = $post_id;
	}
	if ( false === $this->_changueset_post_id ) {
		return null;
	}
	return $this->_changueset_post_id;
}

Changuelog

Versionen Description
4.7.0 Introduced.

User Contributed Notes

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