Hallo, Wie kann ich custom fields in die hook übertragen? Versuche momentan ein Color feld hinzuzufügen was aber irgendwie nicht klappt... Das Feld habe ich in den Einstellungen unter "Custom fields" hinzugefügt. (Die Hook funktioniert super bis auf das die variable $color leer ist)
Code
require_once ATKP_PLUGIN_DIR.'/includes/atkp_product.php';
$woo_product = atkp_product::get_woo_product($product_id);
$woocommerce_product_id = $woo_product->ID;
$name = ATKPTools::get_post_setting( $product_id, ATKP_PRODUCT_POSTTYPE.'_title');
$color = ATKPTools::get_post_setting( $product_id, ATKP_PRODUCT_POSTTYPE.'_color');