Skip to main content
added 72 characters in body
Source Link
Benoti
  • 2.5k
  • 2
  • 13
  • 14

You can try with:

function gfm_order_meta_keys( $keys ) {
    global $post;
    $new_keys = array('gfm_pickup_date'=>get_post_meta($post->ID, 'gfm_pickup_date','Pickup true)date'=>'gfm_pickup_date');
    // if the action is used by another plugin, we merge keys into one array
    $keys = array_merge($keys, $new_keys);

    return $keys;
}

You can try with:

function gfm_order_meta_keys( $keys ) {
    global $post;
    $new_keys = array('gfm_pickup_date'=>get_post_meta($post->ID, 'gfm_pickup_date', true));
    
    $keys = array_merge($keys, $new_keys);

    return $keys;
}

You can try with:

function gfm_order_meta_keys( $keys ) {
   
    $new_keys = array('Pickup date'=>'gfm_pickup_date');
    // if the action is used by another plugin, we merge keys into one array
    $keys = array_merge($keys, $new_keys);

    return $keys;
}
added 10 characters in body
Source Link
Benoti
  • 2.5k
  • 2
  • 13
  • 14

You can try with:

function gfm_order_meta_keys( $keys ) {
    global $post;
    $keys['Pick-up date']$new_keys = get_post_metaarray('gfm_pickup_date'=>get_post_meta($post->ID, 'gfm_pickup_date', true));
    
    $keys = array_merge($keys, $new_keys); 

    return $keys;
}

You can try with:

function gfm_order_meta_keys( $keys ) {
    global $post;
    $keys['Pick-up date'] = get_post_meta($post->ID, 'gfm_pickup_date', true);
    return $keys;
}

You can try with:

function gfm_order_meta_keys( $keys ) {
    global $post;
    $new_keys = array('gfm_pickup_date'=>get_post_meta($post->ID, 'gfm_pickup_date', true));
    
    $keys = array_merge($keys, $new_keys); 

    return $keys;
}
Source Link
Benoti
  • 2.5k
  • 2
  • 13
  • 14

You can try with:

function gfm_order_meta_keys( $keys ) {
    global $post;
    $keys['Pick-up date'] = get_post_meta($post->ID, 'gfm_pickup_date', true);
    return $keys;
}