WPML
SignaturePHP
add_filter( 'wcml_js_lock_fields_input_names', 'the_callback_function' );

Arguments

There is only one parameter passed to this filter:

  • $namesarray

    The array including custom field input names.

Example Usage

PHP
/**
 * 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;
}