• Resolved robert7k

    (@robert7k)


    sublanguage_import_post hook currently ignores meta_input.
    example:

    do_action( 'sublanguage_import_post', array(
    	'ID' => 123,
    	'sublanguages' => array(
    		array(
    			'language' => 'fr',
    			'post_title' => 'Bonjour',
    			'post_content' => 'Exemple de contenu',
    			'post_meta' => array('car' => 'Citro?n')
    		)
    	)
    ));

    The car isn’t imported.
    Is there a way to do it without re-implementing the whole logic on my own (which could break due to future changes in sublanguage)?

    Or should i just add some code into public function import_post($data) and send a pull request?

    • This topic was modified 4 years, 1 month ago by robert7k.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter robert7k

    (@robert7k)

    p.s. this code doesn’t do anything because of another bug (that requires specifying post_type) – but I already have a solution for that bug

    Thread Starter robert7k

    (@robert7k)

    Fixed in a future version. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘importing multi language posts with metadata’ is closed to new replies.