Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Elementor #202

Open
DeoThemes opened this issue Aug 4, 2021 · 0 comments
Open

Doesn't work with Elementor #202

DeoThemes opened this issue Aug 4, 2021 · 0 comments

Comments

@DeoThemes
Copy link

DeoThemes commented Aug 4, 2021

I was hoping to use this class in our themes, but it fails with Elementor content import. It doesn't properly import Elementor meta. I tried to add a fix from OCDI in WXR Importer.php in import method, but it still fails:

/*
* Elementor fix for excessive use of `wp_slash` after our update v3.0.2.
* Method in Elementor: \Elementor\Compatibility::register_actions
* https://wordpress.org/support/topic/version-2-6-0-breaks-every-elementor-theme/
*
* This can be removed after Elementor skips the functionality in above method if our plugin is in use.
*/
if ( method_exists( '\Elementor\Compatibility', 'on_wxr_importer_pre_process_post_meta' ) ) {
	remove_action( 'wxr_importer.pre_process.post_meta', array( 'Elementor\Compatibility', 'on_wxr_importer_pre_process_post_meta' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant