WP_Customize_Manager::changeset_post_id(): int|null

Gets the changeset post ID for the loaded changeset.


Return

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


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php. View all references

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;
}


Top ↑

Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes

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