add Import fields in csv
Hi all
I am trying to add a new import field to functions.php, i am following the tutorial
here the code i am trying to add is:
Code:
function cp_child_add_region_field( $args ) {
$args['custom_fields']['type'] = array( 'internal_key' =>; 'cp_rifle_type' );
return $args;
}
add_filter( 'cp_csv_importer_args', 'cp_child_add_type_field' );
But i cannot get it to work, it crashes my admin with the following error:
call_user_func_array() expects parameter 1 to be a valid callback, function 'cp_child_add_type_field' not found or invalid function name in /home/*****/public_html/
wp-includes/plugin.php on line 173
has anyone got this tutorial to work?
Dave
******FIXED*****