Add actions to product bulk edit section

This commit is contained in:
Max Rice 2013-03-23 16:32:47 -04:00
parent 414315fde0
commit d04b3111d2
1 changed files with 8 additions and 0 deletions

View File

@ -782,6 +782,8 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
<h4><?php _e( 'Product Data', 'woocommerce' ); ?></h4> <h4><?php _e( 'Product Data', 'woocommerce' ); ?></h4>
<?php do_action( 'woocommerce_product_bulk_edit_start' ); ?>
<div class="inline-edit-group"> <div class="inline-edit-group">
<label class="alignleft"> <label class="alignleft">
<span class="title"><?php _e( 'Price', 'woocommerce' ); ?></span> <span class="title"><?php _e( 'Price', 'woocommerce' ); ?></span>
@ -975,7 +977,11 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
<input type="text" name="_stock" class="text stock" placeholder="<?php _e( 'Stock Qty', 'woocommerce' ); ?>" value=""> <input type="text" name="_stock" class="text stock" placeholder="<?php _e( 'Stock Qty', 'woocommerce' ); ?>" value="">
</label> </label>
</div> </div>
<?php endif; ?> <?php endif; ?>
do_action( 'woocommerce_product_bulk_edit_end' );
<input type="hidden" name="woocommerce_bulk_edit_nonce" value="<?php echo wp_create_nonce( 'woocommerce_bulk_edit_nonce' ); ?>" /> <input type="hidden" name="woocommerce_bulk_edit_nonce" value="<?php echo wp_create_nonce( 'woocommerce_bulk_edit_nonce' ); ?>" />
</div> </div>
</fieldset> </fieldset>
@ -1148,6 +1154,8 @@ function woocommerce_admin_product_bulk_edit_save( $post_id, $post ) {
} }
do_action( 'woocommerce_product_bulk_edit_save', $product );
// Clear transient // Clear transient
$woocommerce->clear_product_transients( $post_id ); $woocommerce->clear_product_transients( $post_id );
} }