WordPress filter hook

themify_builder_module_container_props

Defined by Themify Builder and fired by 4 plugins in total, running on 8,100+ sites between them.

How to use themify_builder_module_container_props

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:

functions.php
add_filter( 'themify_builder_module_container_props', function( $value, $fields_args, $mod_name, $element_id ) {
	// Change $value here.
	return $value;
}, 10, 4 );

Argument names come from Themify Builder's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire themify_builder_module_container_props

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Themify Builder icon Themify Builder6,000+ installs apply_filters( 'themify_builder_module_container_props', self::parse_animation_effect($fields_args,array( 'class' => implode(' ', $container_class), 'data-behavior' => $fields_args['expand_collapse_accordion'] )), $fields_args, $mod_name, $element_id ) templates/template-accordion.php:53
  2. Themify Event Post icon Themify Event Post2,000+ installs apply_filters( 'themify_builder_module_container_props', array( 'id' => $args['module_ID'], 'class' => implode(' ', $container_class) ), $fields_args, $args['mod_name'], $args['module_ID'] ) templates/template-event-posts.php:51
  3. Easy Language icon Easy Language100+ installs apply_filters( 'themify_builder_module_container_props', Themify_Builder_Component_Module::parse_animation_effect( $easy_language_settings, array( 'class' => implode( ' ', array_filter( array_map( 'strval', (array) $easy_language_classes ) ) ), ) ), $easy_language_settings, $easy_language_mod_name, $easy_language_element_id ) legacy-classes/Themify/templates/template-easy-language-switcher.php:53
  4. threadi Now Pages icon threadi Now PagesFewer than 10 installs apply_filters( 'themify_builder_module_container_props', array( 'id' => $args['module_ID'], 'class' => implode( ' ', $threadi_np_container_class ), ), $threadi_np_fields_args, $args['mod_name'], $args['module_ID'] ) legacy-classes/Themify/templates/template-digest.php:68

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.