WordPress at Your Fingertips
function is not described

WC_Admin_Post_Types::bulk_and_quick_edit_save_post() public WC 1.0

Quick and bulk edit saving.

{} It's a method of the class: WC_Admin_Post_Types{}

No Hooks.

Return

Int.

Usage

$WC_Admin_Post_Types = new WC_Admin_Post_Types();
$WC_Admin_Post_Types->bulk_and_quick_edit_save_post( $post_id, $post );
$post_id(int) (required)
Post ID being saved.
$post(object) (required)
Post object being saved.

Code of WC_Admin_Post_Types::bulk_and_quick_edit_save_post() WC 5.9.0

public function bulk_and_quick_edit_save_post( $post_id, $post ) {
	$request_data = $this->request_data();

	// If this is an autosave, our form has not been submitted, so we don't want to do anything.
	if ( Constants::is_true( 'DOING_AUTOSAVE' ) ) {
		return $post_id;
	}

	// Don't save revisions and autosaves.
	if ( wp_is_post_revision( $post_id ) || wp_is_post_autosave( $post_id ) || 'product' !== $post->post_type || ! current_user_can( 'edit_post', $post_id ) ) {
		return $post_id;
	}

	// Check nonce.
	// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash
	if ( ! isset( $request_data['woocommerce_quick_edit_nonce'] ) || ! wp_verify_nonce( $request_data['woocommerce_quick_edit_nonce'], 'woocommerce_quick_edit_nonce' ) ) {
		return $post_id;
	}

	// Get the product and save.
	$product = wc_get_product( $post );

	if ( ! empty( $request_data['woocommerce_quick_edit'] ) ) { // WPCS: input var ok.
		$this->quick_edit_save( $post_id, $product );
	} else {
		$this->bulk_edit_save( $post_id, $product );
	}

	return $post_id;
}