pbs.save.payload

Called right before the editor saves the contents. You can use this to place additional data to send during saving (this doesn't save the data, just sends it via Ajax to the backend)

Parameters

payload

FormData object. The data sent via Ajax for saving.

Example

wp.hooks.addAction( 'pbs.save.payload', function( payload ) {

	// Add data to be sent during saving.
	payload.append( 'my_data', 'My Data' );
}

Still need help? Contact Us Contact Us