| 开发者 | synapsewp |
|---|---|
| 更新时间 | 2026年11月28日 23:28 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
https:\/\/) forms. URLs are only replaced at a URL boundary, so example.com never rewrites example.com.au.[elementor-template] shortcodes, forms, menus, dynamic tags, and global colours/fonts (__globals__).edit_post on each exported item.edit_pages for pages, edit_posts for posts), plus upload_files for images.unfiltered_html, because Elementor HTML widgets can contain raw HTML and JavaScript..json extension and a text or JSON MIME type, and the temporary file is deleted after reading.download_url(), which refuses private and loopback addresses, and only from the host of the site the file was exported from.synwp_ct_supported_post_types — post types that get the export and import actions (default: every post type with an admin UI, except media, revisions, menu items and Site Editor types).synwp_ct_meta_blocklist — extra meta keys to never transfer.synwp_ct_max_upload_size — maximum import file size in bytes (default 20 MB, capped by the server limit).synwp_ct_export_payload( $payload, $posts ) — the export file contents before they are encoded.synwp_ct_export_page( $entry, $post ) — one export entry. Add-on data goes under $entry['extensions'][ $slug ] and is passed through on import.synwp_ct_import_page_data( $page, $options, $context ) — a page before it is imported.synwp_ct_import_postarr( $postarr, $page, $options, $context ) — post fields before the post is created or updated.synwp_ct_import_options_fields( $options, $payload ) — the import options read from the import form.synwp_ct_import_button_url( $url, $post_type ) — where the Import button on list screens points.synwp_ct_media_allowed_hosts( $hosts, $urls ) — hosts images may be downloaded from (default: the source site).synwp_ct_media_local_file( $path, $url ) — a local copy of an image to use instead of downloading it.synwp_ct_page_globals( $globals ) — the global colour/font references an import warns about.synwp_ct_import_screen — print extra fields at the end of the import form.synwp_ct_before_import_page( $page, $options, $context ) — before each imported page.synwp_ct_after_import_page( $new_id, $page, $result, $context ) — after each imported page ($new_id is 0 on failure).SynWP_CT_Exporter::export_post( $post_id ) returns one export entry.SynWP_CT_Importer::import_page( $page, $options, &$context ) imports one entry and returns new_id, warnings and errors. $context carries shared state across a multi-item import: source, id_map (old → new post ID) and media_map (source URL → attachment ID)./wp-content/plugins/ and activate it on the Plugins screen.Pages, posts, custom post types and Elementor templates: any post type with an admin screen. Each Export click exports one item; an import file can hold any number of items.
The free Elementor plugin is required, and must be active on both sites. Elementor Pro is not required, but to display an Elementor page as designed, the destination needs Elementor Pro and any add-ons the page's widgets come from if the page uses them. Gutenberg and classic pages transfer too.
No. The Elementor Kit (global colours and fonts) and Theme Builder templates (header, footer, single, popups) live outside the page. On another site the page uses that site's Kit and templates, and the import warns you when the page relies on them.
Widgets that reference other content by ID are flagged, not remapped. This includes Template, Global and Loop widgets, forms, menus and dynamic tags. Check them by hand on the destination.
WordPress refuses to download from private IP addresses. Moving pages between two local development sites therefore needs an http_request_host_is_external filter on the destination.
When a page uses widgets that aren't registered on the destination (Pro widgets without Pro, missing add-ons), the data is written to post meta directly instead of through Elementor's document API, because Elementor's save would silently drop those widgets. They reappear once their plugin is active.
Images are re-pointed by URL, but block attributes keep the source attachment ID ("id":N / wp-image-N). They render correctly, but the block editor may not link them to the new Media Library item.
Not yet. Elementor 4's editor top bar has no stable extension API, so use the row action on the Pages or Posts screen.
A JSON file (format version 1) with the item's title, slug, content, excerpt, status, type, menu order, comment status and page template; its post meta; its Elementor data and page settings; its featured image; its terms; and a list of the images it uses. Never exported or imported: _edit_lock, _edit_last, _wp_old_slug, _elementor_css, _elementor_page_assets, _elementor_element_cache, _thumbnail_id (handled through the featured image), _oembed_* and _wp_trash_meta_*.