Tet banner

Custom Fields
Support Meta Box Group Copy some sub fields in group with polylang

  • Creator
  • #28132
    Resolved Régis Evennou

    I need to copy some sub fields with polylang, not all fields of the group.
    I used to copy needed custom fields with polylang using:

    add_filter( 'pll_copy_post_metas', 'copy_post_metas' );
    function copy_post_metas( $metas ) {
        return array_merge( $metas, array( 'my_post_meta' ) );

    But sub fields are not registred as meta_key in wp_postmeta table, they are stored in an array in meta_value.
    Is there a way to do that ?
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.