WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Admin_Post_Types::bulk_and_quick_edit_save_post() public WC 1.0

Quick and bulk edit saving.

Это метод класса: WC_Admin_Post_Types{}

Хуков нет.

Возвращает

Число.

Использование

$WC_Admin_Post_Types = new WC_Admin_Post_Types();
$WC_Admin_Post_Types->bulk_and_quick_edit_save_post( $post_id, $post );
$post_id(число) (обязательный)
Post ID being saved.
$post(объект) (обязательный)
Post object being saved.

Код WC Admin Post Types::bulk and quick edit save post: woocommerce/includes/admin/class-wc-admin-post-types.php WC 4.5.2

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