WordPress filter hook
elementor/template_library/import/process_content
Defined by Elementor Agent Ready Website Builder and fired by 4 plugins in total, running on 10M+ sites between them.
How to use elementor/template_library/import/process_content
It's a filter: your callback receives the value and 3 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'elementor/template_library/import/process_content', function( $value, $import_mode, $data, $arg4 ) {
// Change $value here.
return $value;
}, 10, 4 );Argument names come from Elementor Agent Ready Website Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
4 plugins that fire elementor/template_library/import/process_content
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Elementor Agent Ready Website Builder10+ million installs
apply_filters( 'elementor/template_library/import/process_content', [ 'content' => $content ], $import_mode, $data, null )includes/template-library/manager.php:727 -
Thim Elementor Kit20,000+ installs
apply_filters( 'elementor/template_library/import/process_content', [ 'content' => $el_data ], $import_mode, $data, $source )inc/elementor/library/class-import.php:51 -
Animation Addons for Elementor10,000+ installs
apply_filters( 'elementor/template_library/import/process_content', [ 'content' => $all ], $mode, $data, $source )inc/admin/atomic-kit-import.php:419 -
ThemeREX eCommerce Extensions for Elementor900+ installs
apply_filters( 'elementor/template_library/import/process_content', array( 'content' => $content ), $import_mode, $data, null )core/api/woocommerce/modules/woo-template/template-library.php:276
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.