WPML
add_action( 'wcml_after_custom_prices_block', 'the_callback_function', 10, 1 );
النوع
action
إصدار WooCommerce Multilingual
3.8.1

الوصف

  • تشغيل الإجراءات بعد إنشاء كتلة السعر المخصص في محرر منتجات WooCommerce الأصلي.
  • يُشغّل هذا الإجراء عند إنشاء أو تعديل المنتجات الأصلية فقط.

الوسطاء

هناك مَعلمة واحدة يتم تمريرها إلى هذا الإجراء:
$product_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

جميع خطاطيف ميزة تعدد العملات البالغ عددها 24 →