add_action( 'wcml_after_custom_prices_block', 'the_callback_function', 10, 1 );
- סוג
- action
- קטגוריה
- תכונת ריבוי מטבעות
- גרסת WooCommerce Multilingual
- 3.8.1
תיאור
- הפעל פעולות לאחר יצירת בלוק המחיר המותאם אישית בעורך המוצרים המובנה של WooCommerce.
- פעולה זו מופעלת בעת יצירה או עריכה של המוצרים המקוריים בלבד.
ארגומנטים
יש פרמטר אחד שמועבר לפעולה זו:- $product_id
- (integer | string)מזהה (ID) של המוצר בעריכה או ערך המחרוזת
newאם המוצר נוצר כעת.
דוגמה לשימוש
דוגמה
add_action( 'wcml_after_custom_prices_block', 'my_custom_action', 10, 1 );
function my_custom_action( $product_id ) {
// my custom action
}
הוקים קשורים
wcml_custom_prices_fields_labels, wcml_is_cache_enabled_for_switching_currency, wcml_geolocation_get_user_country, wcml_user_store_strategy, wcml_rounded_price, wcml_currencies_without_cents, wcml_product_custom_prices, wcml_custom_prices_strings, wcml_switch_currency, wcml_custom_prices_fields