Results 1 to 1 of 1

Thread: add Import fields in csv

  1. #1
    Thread Starter
    davlam0's Avatar
    Join Date
    Nov 2012
    Location
    United Kingdom
    Posts
    23
    Thanks
    2
    Thanked 0 Times in 0 Posts

    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*****

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CSV Import with custom fields for Classipress
    By swaynevds4755 in forum ClassiPress General Discussion
    Replies: 24
    Last Post: March 16th, 2016, 11:38 AM
  2. Dimitris What fields are necessary for coupon import?
    By socialgrowth in forum Report Clipper Bugs
    Replies: 3
    Last Post: December 1st, 2012, 06:03 AM
  3. import custom fields - possible?
    By almightyeric in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: August 18th, 2012, 04:03 PM
  4. Custom Fields Import
    By bbihun12 in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: August 15th, 2012, 03:33 PM