Snippets: Add Custom WPBakery Section/Row Divider Types/Styles

/**
 * Define new divider option.
 *
 * Once defined you will need to create a file inside your child theme at assets/shape-dividers/my-custom-divider.svg
 * with your SVG code. It's possible to instead hook into "wpex_get_shape_dividers_svg" to customize the output but then
 * you need to add extra code to make sure all the shape settings work (invert, fill color, etc)
 */
add_filter( 'wpex_get_section_shape_divider_types', function( $types ) {
	$types['my-custom-divider'] = esc_html( 'Custom Divider', 'text_domain' );
	return $types;
} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)