TokoDaring.Com – Daftar Hooks WooCommerce, WooCommerce Hooks. Hooks pada WordPress dan WooCommerce pada dasarnya memungkinkan kita untuk mengubah atau menambahkan kode tanpa mengedit file inti WordPress / WooCommerce. Hooks digunakan secara luas di seluruh bagian WordPress dan WooCommerce dan sangat berguna bagi pihak pengembang maupun pemilik bisnis toko daring.
Table of Contents
Tipe hooks (jenis jenis hook)
Hooks pada dasarnya memiliki dua tipe hooks (jenis jenis hook), action dan filter.
- Action Hooks memungkinkan kita memasukkan kode khusus di berbagai titik (di mana pun hook tersebut dijalankan).
- Filter Hooks memungkinkan kita untuk memanipulasi dan mengembalikan variabel yang dilewatinya (misalnya harga produk).
Tentang WordPress hooks, Action dan Filter, lihat lagi artikel kami sebelumnya yang menjelaskan tentang apa itu WordPress hooks.
WooCommerce hooks
Seperti halnya pada WordPress, WooCommerce juga memiliki banyak hook. WooCommerce hooks tersebut nantinya bisa di manfaatkan oleh pengembang baik tema dan plugin.
Bahkan bagi anda pemilik situs website eCommerce yang mungkin ingin menghadirkan fitur baru dan unique sesuai bisnis anda. Fitur baru itu bisa anda kembangkan dengan memanfaatkan WooCommerce hooks.
Daftar hooks WooCommerce (WooCommerce hooks)
Ini adalah daftar WooCommerce hooks (action dan filter) yang ada di dalam file plugin WooCommerce. Lihat sumber asli di halaman WooCommerce hooks atau di halaman action and filter hook reference untuk melihat parameter dan penggunaannya.
Daftar hooks WooCommerce (Template Files)
woocommerce_account_content |
my-account.php |
woocommerce_account_dashboard |
dashboard.php |
woocommerce_account_downloads_column_$COLUMN_ID |
order-downloads.php |
woocommerce_account_navigation |
my-account.php |
woocommerce_account_payment_methods_column_$COLUMN_ID |
payment-methods.php |
woocommerce_add_payment_method_form_bottom |
form-add-payment-method.php |
woocommerce_after_account_downloads |
downloads.php |
woocommerce_after_account_navigation |
navigation.php |
woocommerce_after_account_orders |
orders.php |
woocommerce_after_account_payment_methods |
payment-methods.php |
woocommerce_after_available_downloads |
downloads.php, my-downloads.php |
woocommerce_after_cart |
cart.php |
woocommerce_after_cart_contents |
cart.php |
woocommerce_after_cart_item_name |
cart.php |
woocommerce_after_cart_table |
cart.php |
woocommerce_after_cart_totals |
cart-totals.php |
woocommerce_after_checkout_billing_form |
form-billing.php |
woocommerce_after_checkout_form |
form-checkout.php |
woocommerce_after_checkout_registration_form |
form-billing.php |
woocommerce_after_checkout_shipping_form |
form-shipping.php |
woocommerce_after_customer_login_form |
form-login.php |
woocommerce_after_edit_account_address_form |
form-edit-address.php |
woocommerce_after_edit_account_form |
form-edit-account.php |
woocommerce_after_edit_address_form_$LOAD_ADDRESS |
form-edit-address.php |
woocommerce_after_lost_password_confirmation_message |
lost-password-confirmation.php |
woocommerce_after_lost_password_form |
form-lost-password.php |
woocommerce_after_main_content |
archive-product.php, single-product.php |
woocommerce_after_mini_cart |
mini-cart.php |
woocommerce_after_my_account |
dashboard.php |
woocommerce_after_order_details |
order-details.php |
woocommerce_after_order_notes |
form-shipping.php |
woocommerce_after_quantity_input_field |
quantity-input.php |
woocommerce_after_reset_password_form |
form-reset-password.php |
woocommerce_after_shipping_calculator |
shipping-calculator.php |
woocommerce_after_shipping_rate |
cart-shipping.php |
woocommerce_after_shop_loop |
archive-product.php |
woocommerce_after_shop_loop_item |
content-product.php |
woocommerce_after_shop_loop_item_title |
content-product.php |
woocommerce_after_single_product |
content-single-product.php |
woocommerce_after_single_product_summary |
content-single-product.php |
woocommerce_after_subcategory |
content-product-cat.php |
woocommerce_after_subcategory_title |
content-product-cat.php |
woocommerce_archive_description |
archive-product.php |
woocommerce_auth_page_footer |
form-grant-access.php, form-login.php |
woocommerce_auth_page_header |
form-grant-access.php, form-login.php |
woocommerce_available_download_count |
my-downloads.php |
woocommerce_available_download_end |
my-downloads.php |
woocommerce_available_download_link |
my-downloads.php |
woocommerce_available_download_start |
my-downloads.php |
woocommerce_available_downloads |
downloads.php |
woocommerce_before_account_downloads |
downloads.php |
woocommerce_before_account_navigation |
navigation.php |
woocommerce_before_account_orders |
orders.php |
woocommerce_before_account_orders_pagination |
orders.php |
woocommerce_before_account_payment_methods |
payment-methods.php |
woocommerce_before_available_downloads |
downloads.php, my-downloads.php |
woocommerce_before_cart |
cart.php |
woocommerce_before_cart_collaterals |
cart.php |
woocommerce_before_cart_contents |
cart.php |
woocommerce_before_cart_table |
cart.php |
woocommerce_before_cart_totals |
cart-totals.php |
woocommerce_before_checkout_billing_form |
form-billing.php |
woocommerce_before_checkout_form |
form-checkout.php |
woocommerce_before_checkout_registration_form |
form-billing.php |
woocommerce_before_checkout_shipping_form |
form-shipping.php |
woocommerce_before_customer_login_form |
form-login.php |
woocommerce_before_edit_account_address_form |
form-edit-address.php |
woocommerce_before_edit_account_form |
form-edit-account.php |
woocommerce_before_edit_address_form_$LOAD_ADDRESS |
form-edit-address.php |
woocommerce_before_lost_password_confirmation_message |
lost-password-confirmation.php |
woocommerce_before_lost_password_form |
form-lost-password.php |
woocommerce_before_main_content |
archive-product.php, single-product.php |
woocommerce_before_mini_cart |
mini-cart.php |
woocommerce_before_mini_cart_contents |
mini-cart.php |
woocommerce_before_my_account |
dashboard.php |
woocommerce_before_order_notes |
form-shipping.php |
woocommerce_before_quantity_input_field |
quantity-input.php |
woocommerce_before_reset_password_form |
form-reset-password.php |
woocommerce_before_shipping_calculator |
shipping-calculator.php |
woocommerce_before_shop_loop |
archive-product.php |
woocommerce_before_shop_loop_item |
content-product.php |
woocommerce_before_shop_loop_item_title |
content-product.php |
woocommerce_before_single_product |
content-single-product.php |
woocommerce_before_single_product_summary |
content-single-product.php |
woocommerce_before_subcategory |
content-product-cat.php |
woocommerce_before_subcategory_title |
content-product-cat.php |
woocommerce_before_thankyou |
thankyou.php |
woocommerce_cart_actions |
cart.php |
woocommerce_cart_collaterals |
cart.php |
woocommerce_cart_contents |
cart.php |
woocommerce_cart_coupon |
cart.php |
woocommerce_cart_has_errors |
cart-errors.php |
woocommerce_cart_is_empty |
cart-empty.php |
woocommerce_cart_item_backorder_notification |
cart.php |
woocommerce_cart_item_class |
review-order.php, cart.php |
woocommerce_cart_item_name |
review-order.php, cart.php, cart.php, mini-cart.php |
woocommerce_cart_item_permalink |
cart.php, mini-cart.php |
woocommerce_cart_item_price |
cart.php, mini-cart.php |
woocommerce_cart_item_product |
review-order.php, cart.php, mini-cart.php |
woocommerce_cart_item_product_id |
cart.php, mini-cart.php |
woocommerce_cart_item_quantity |
cart.php |
woocommerce_cart_item_remove_link |
cart.php, mini-cart.php |
woocommerce_cart_item_subtotal |
review-order.php, cart.php |
woocommerce_cart_item_thumbnail |
cart.php, mini-cart.php |
woocommerce_cart_item_visible |
cart.php |
woocommerce_cart_no_shipping_available_html |
cart-shipping.php |
woocommerce_cart_totals_after_order_total |
cart-totals.php |
woocommerce_cart_totals_after_shipping |
cart-totals.php |
woocommerce_cart_totals_before_order_total |
cart-totals.php |
woocommerce_cart_totals_before_shipping |
cart-totals.php |
woocommerce_checkout_after_customer_details |
form-checkout.php |
woocommerce_checkout_after_order_review |
form-checkout.php |
woocommerce_checkout_after_terms_and_conditions |
terms.php |
woocommerce_checkout_before_customer_details |
form-checkout.php |
woocommerce_checkout_before_order_review |
form-checkout.php |
woocommerce_checkout_before_order_review_heading |
form-checkout.php |
woocommerce_checkout_before_terms_and_conditions |
terms.php |
woocommerce_checkout_billing |
form-checkout.php |
woocommerce_checkout_cart_item_quantity |
review-order.php |
woocommerce_checkout_cart_item_visible |
review-order.php |
woocommerce_checkout_coupon_message |
form-coupon.php |
woocommerce_checkout_login_message |
form-login.php |
woocommerce_checkout_must_be_logged_in_message |
form-checkout.php |
woocommerce_checkout_order_review |
form-checkout.php |
woocommerce_checkout_shipping |
form-checkout.php |
woocommerce_checkout_show_terms |
terms.php |
woocommerce_checkout_terms_and_conditions |
terms.php |
woocommerce_comment_pagination_args |
single-product-reviews.php |
woocommerce_create_account_default_checked |
form-billing.php |
woocommerce_edit_account_form |
form-edit-account.php |
woocommerce_edit_account_form_end |
form-edit-account.php |
woocommerce_edit_account_form_start |
form-edit-account.php |
woocommerce_edit_account_form_tag |
form-edit-account.php |
woocommerce_email_after_order_table |
email-order-details.php |
woocommerce_email_before_order_table |
email-order-details.php |
woocommerce_email_customer_details |
admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php |
woocommerce_email_downloads_column_$COLUMN_ID |
email-downloads.php |
woocommerce_email_footer |
admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-new-account.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php, customer-reset-password.php |
woocommerce_email_footer_text |
email-footer.php |
woocommerce_email_header |
admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-new-account.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php, customer-reset-password.php |
woocommerce_email_order_details |
admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php |
woocommerce_email_order_item_quantity |
email-order-items.php |
woocommerce_email_order_meta |
admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php |
woocommerce_enable_order_notes_field |
form-shipping.php |
woocommerce_login_form |
form-login.php, form-login.php |
woocommerce_login_form_end |
form-login.php, form-login.php |
woocommerce_login_form_start |
form-login.php, form-login.php |
woocommerce_loop_add_to_cart_link |
add-to-cart.php |
woocommerce_lost_password_confirmation_message |
lost-password-confirmation.php |
woocommerce_lost_password_message |
form-lost-password.php |
woocommerce_lostpassword_form |
form-lost-password.php |
woocommerce_mini_cart_contents |
mini-cart.php |
woocommerce_mini_cart_item_class |
mini-cart.php |
woocommerce_my_account_edit_address_title |
form-edit-address.php |
woocommerce_my_account_get_addresses |
my-address.php, my-address.php |
woocommerce_my_account_my_address_description |
my-address.php |
woocommerce_my_account_my_downloads_title |
my-downloads.php |
woocommerce_my_account_my_orders_column_$COLUMN_ID |
my-orders.php, orders.php |
woocommerce_my_account_my_orders_columns |
my-orders.php |
woocommerce_my_account_my_orders_query |
my-orders.php |
woocommerce_my_account_my_orders_title |
my-orders.php |
woocommerce_no_available_payment_methods_message |
form-pay.php, payment.php |
woocommerce_no_products_found |
archive-product.php |
woocommerce_no_shipping_available_html |
cart-shipping.php |
woocommerce_order_button_html |
payment.php |
woocommerce_order_details_after_customer_details |
order-details-customer.php |
woocommerce_order_details_after_order_table |
order-details.php |
woocommerce_order_details_after_order_table_items |
order-details.php |
woocommerce_order_details_before_order_table |
order-details.php |
woocommerce_order_details_before_order_table_items |
order-details.php |
woocommerce_order_item_class |
order-details-item.php, form-pay.php, email-order-items.php |
woocommerce_order_item_meta_end |
order-details-item.php, form-pay.php, email-order-items.php |
woocommerce_order_item_meta_start |
order-details-item.php, form-pay.php, email-order-items.php |
woocommerce_order_item_name |
order-details-item.php, form-pay.php, email-order-items.php |
woocommerce_order_item_permalink |
order-details-item.php |
woocommerce_order_item_quantity_html |
order-details-item.php, form-pay.php |
woocommerce_order_item_thumbnail |
email-order-items.php |
woocommerce_order_item_visible |
order-details-item.php, form-pay.php, email-order-items.php |
woocommerce_order_tracking_status |
tracking.php |
woocommerce_pagination_args |
pagination.php |
woocommerce_pay_order_after_submit |
form-pay.php |
woocommerce_pay_order_before_submit |
form-pay.php |
woocommerce_pay_order_button_html |
form-pay.php |
woocommerce_proceed_to_checkout |
cart-totals.php |
woocommerce_product_cross_sells_products_heading |
cross-sells.php |
woocommerce_product_meta_end |
meta.php |
woocommerce_product_meta_start |
meta.php |
woocommerce_product_price_class |
price.php |
woocommerce_product_related_products_heading |
related.php |
woocommerce_product_review_comment_form_args |
single-product-reviews.php |
woocommerce_product_review_list_args |
single-product-reviews.php |
woocommerce_product_thumbnails |
product-image.php |
woocommerce_product_thumbnails_columns |
product-image.php |
woocommerce_product_upsells_products_heading |
up-sells.php |
woocommerce_purchase_note_order_statuses |
order-details.php |
woocommerce_purchase_order_item_types |
order-details.php |
woocommerce_receipt_$ORDER->GET_PAYMENT_METHOD |
order-receipt.php |
woocommerce_register_form |
form-login.php |
woocommerce_register_form_end |
form-login.php |
woocommerce_register_form_start |
form-login.php |
woocommerce_register_form_tag |
form-login.php |
woocommerce_reset_password_message |
form-reset-password.php |
woocommerce_resetpassword_form |
form-reset-password.php |
woocommerce_return_to_shop_redirect |
cart-empty.php, downloads.php, orders.php |
woocommerce_return_to_shop_text |
cart-empty.php |
woocommerce_review_after_comment_text |
review.php |
woocommerce_review_before |
review.php |
woocommerce_review_before_comment_meta |
review.php |
woocommerce_review_before_comment_text |
review.php |
woocommerce_review_comment_text |
review.php |
woocommerce_review_meta |
review.php |
woocommerce_review_order_after_cart_contents |
review-order.php |
woocommerce_review_order_after_order_total |
review-order.php |
woocommerce_review_order_after_payment |
payment.php |
woocommerce_review_order_after_shipping |
review-order.php |
woocommerce_review_order_after_submit |
payment.php |
woocommerce_review_order_before_cart_contents |
review-order.php |
woocommerce_review_order_before_order_total |
review-order.php |
woocommerce_review_order_before_payment |
payment.php |
woocommerce_review_order_before_shipping |
review-order.php |
woocommerce_review_order_before_submit |
payment.php |
woocommerce_reviews_title |
single-product-reviews.php |
woocommerce_sale_flash |
sale-flash.php, sale-flash.php |
woocommerce_share |
share.php |
woocommerce_ship_to_different_address_checked |
form-shipping.php |
woocommerce_shipping_calculator_enable_city |
shipping-calculator.php |
woocommerce_shipping_calculator_enable_country |
shipping-calculator.php |
woocommerce_shipping_calculator_enable_postcode |
shipping-calculator.php |
woocommerce_shipping_calculator_enable_state |
shipping-calculator.php |
woocommerce_shipping_estimate_html |
cart-shipping.php |
woocommerce_shipping_may_be_available_html |
cart-shipping.php |
woocommerce_shipping_not_enabled_on_cart_html |
cart-shipping.php |
woocommerce_shop_loop |
archive-product.php |
woocommerce_shop_loop_item_title |
content-product.php |
woocommerce_shop_loop_subcategory_title |
content-product-cat.php |
woocommerce_short_description |
short-description.php |
woocommerce_show_page_title |
archive-product.php |
woocommerce_sidebar |
archive-product.php, single-product.php |
woocommerce_single_product_image_gallery_classes |
product-image.php |
woocommerce_single_product_image_thumbnail_html |
product-image.php, product-thumbnails.php |
woocommerce_single_product_summary |
content-single-product.php |
woocommerce_terms_is_checked_default |
terms.php |
woocommerce_thankyou |
thankyou.php |
woocommerce_thankyou_$ORDER->GET_PAYMENT_METHOD |
thankyou.php |
woocommerce_thankyou_order_received_text |
thankyou.php, thankyou.php |
woocommerce_view_order |
tracking.php, view-order.php |
woocommerce_widget_cart_item_quantity |
mini-cart.php |
woocommerce_widget_cart_item_visible |
mini-cart.php |
woocommerce_widget_price_filter_end |
content-widget-price-filter.php |
woocommerce_widget_price_filter_start |
content-widget-price-filter.php |
woocommerce_widget_product_item_end |
content-widget-product.php |
woocommerce_widget_product_item_start |
content-widget-product.php |
woocommerce_widget_product_review_item_end |
content-widget-reviews.php |
woocommerce_widget_product_review_item_start |
content-widget-reviews.php |
woocommerce_widget_shopping_cart_after_buttons |
mini-cart.php |
woocommerce_widget_shopping_cart_before_buttons |
mini-cart.php |
woocommerce_widget_shopping_cart_buttons |
mini-cart.php |
woocommerce_widget_shopping_cart_total |
mini-cart.php |
WooCommerce hooks, template functions, di halaman selanjutnya.