Applied to an array of default settings. Useful for changing default element settings.
Copy to Clipboardfunction change_default_args( $defaults, $element ) {
if ( 'fusion_button' == $element ) {
$defaults['accent_color'] = '#ffffff';
}
}
return $defaults;
}
add_filter( 'fusion_builder_default_args', 'change_default_args', 10, 2 );
x 1function change_default_args( $defaults, $element ) {23 if ( 'fusion_button' == $element ) {4 $defaults['accent_color'] = '#ffffff';5 }6 }7 return $defaults;8}9add_filter( 'fusion_builder_default_args', 'change_default_args', 10, 2 );10