Skip to content

Commit

Permalink
feat(core): Add action hooks in product table in vendor dashboard (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
ediamin authored and sabbir1991 committed Nov 26, 2018
1 parent c9917f8 commit b306762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/products/products-listing-row.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<td class="post-status" data-title="<?php _e( 'Status', 'dokan-lite' ); ?>">
<label class="dokan-label <?php echo dokan_get_post_status_label_class( $post->post_status ); ?>"><?php echo dokan_get_post_status( $post->post_status ); ?></label>
</td>

<?php do_action( 'dokan_product_list_table_after_status_table_data', $post, $product, $tr_class, $row_actions ); ?>

<td data-title="<?php _e( 'SKU', 'dokan-lite' ); ?>">
<?php
if ( $product->get_sku() ) {
Expand Down
3 changes: 3 additions & 0 deletions templates/products/products-listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
<th><?php _e( 'Image', 'dokan-lite' ); ?></th>
<th><?php _e( 'Name', 'dokan-lite' ); ?></th>
<th><?php _e( 'Status', 'dokan-lite' ); ?></th>

<?php do_action( 'dokan_product_list_table_after_status_table_header' ); ?>

<th><?php _e( 'SKU', 'dokan-lite' ); ?></th>
<th><?php _e( 'Stock', 'dokan-lite' ); ?></th>
<th><?php _e( 'Price', 'dokan-lite' ); ?></th>
Expand Down

0 comments on commit b306762

Please sign in to comment.