Created
March 16, 2018 23:47
-
-
Save carlosonweb/ab71d8635fe3bd6fbef54b42a4df69d0 to your computer and use it in GitHub Desktop.
Add Row Custom Attributes To A Beaver Builder Row
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'fl_builder_row_attributes', function( $attrs, $row ){ | |
if ( $row->settings->id === 'ROW-ID-HERE' ){ | |
$attrs['data-THE-FIELD-HERE'] = 'THE-VALUE-HERE'; | |
} | |
return $attrs; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment