Skip to content

Instantly share code, notes, and snippets.

@lots0logs
Created May 21, 2018 12:55
Show Gist options
  • Save lots0logs/1cb7501a2ee79103ce1075f468b88795 to your computer and use it in GitHub Desktop.
Save lots0logs/1cb7501a2ee79103ce1075f468b88795 to your computer and use it in GitHub Desktop.
Divi Builder :: Filters :: Module HTML Attributes
<?php
/**
* Filters the HTML attributes for the module's outer wrapper. The dynamic portion of the
* filter name, '$slug', corresponds to the module's slug.
*
* @since 3.1
*
* @param string[] $outer_wrapper_attrs
* @param ET_Builder_Element $module_instance
*/
$outer_wrapper_attrs = apply_filters( "et_builder_module_{$slug}_outer_wrapper_attrs", $outer_wrapper_attrs, $this );
/**
* Filters the HTML attributes for the module's inner wrapper. The dynamic portion of the
* filter name, '$slug', corresponds to the module's slug.
*
* @since 3.1
*
* @param string[] $inner_wrapper_attrs
* @param ET_Builder_Element $module_instance
*/
$inner_wrapper_attrs = apply_filters( "et_builder_module_{$slug}_inner_wrapper_attrs", $inner_wrapper_attrs, $this );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment