Custom Repeater Field Integration
-
Hi,
We are trying to integrate custom “repeater fields” within Wcfm.
We need to save data from wcfm product page through a script written in functions.php file in order to create repeated html fields as ACF or others do not work as expected.
We called this hook to save the data entered:
add_action(‘after_wcfm_products_manage_meta_save’,function($new_product_id, $wcfm_products_manage_form_data){
if(isset($wcfm_products_manage_form_data[‘dayplans’])){ update_post_meta($new_product_id,’dayplans’,stripslashes($wcfm_products_manage_form_data[‘dayplans’])); }
},60,2);
The data is not saved in the database in post_meta table.
Any solutions ?
Material Attached
Feature: https://ibb.co/r77w8SG
Repeater field html: https://ibb.co/LYtcZfB
Wcfm code: https://ibb.co/R2gkY8x
- The topic ‘Custom Repeater Field Integration’ is closed to new replies.