Get the ID of a page in Parent combobox in editor

After some time reading the Editor Documentation I found the proper solution. This is how you can listen to changes and get the id of the Parent Combobox select in the WP Editor: wp.data.subscribe( function () { var newParent = wp.data.select(‘core/editor’).getEditedPostAttribute(‘parent’); console.log(newParent); } ); wp.data.subscribe is called every single time a change occurs in the … Read more