add_filter( 'wcml_js_lock_fields_input_names', 'the_callback_function' );
Arguments
There is only one parameter passed to this filter:
$namesarrayThe array including custom field input names.
Example Usage
/** * Add this code to the functions.php file of your theme. */ add_filter( 'wcml_js_lock_fields_input_names', 'add_js_lock_fields_input_names' ); function add_js_lock_fields_input_names( $names ){ // Add 2 locked field input names $names[] = '_base_regular_price'; $names[] = 'bto_style'; return $names; }