GC_Customize_Manager::changeset_post_id()

最后更新于:2021-11-27 00:49:50

GC_Customize_Manager::changeset_post_id()

Get the changeset post ID for the loaded changeset.

响应

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

源文件

文件: gc-includes/class-gc-customize-manager.php

	public function changeset_post_id() {
		if ( ! isset( $this->_changeset_post_id ) ) {
			$post_id = $this->find_changeset_post_id( $this->changeset_uuid() );
			if ( ! $post_id ) {
				$post_id = false;
			}
			$this->_changeset_post_id = $post_id;
		}
		if ( false === $this->_changeset_post_id ) {
			return null;
		}
		return $this->_changeset_post_id;
	}