importing multi language posts with metadata
-
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?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘importing multi language posts with metadata’ is closed to new replies.