gppro_section_after_entry_widget_area

This filter should be used to modify sections for the after entry widget area (if the theme supports it).

You can add support to your child theme for the after entry widget controls by adding this line in your theme’s constructor:

// enable after entry widget sections
add_filter( 'gppro_section_inline_content_extras', array( 'GP_Pro_Sections', 'after_entry_widget_area' ), 15, 2 );

Use it like you would any of the other section filters.

Example modifications to after entry widget area

add_filter( 'gppro_section_after_entry_widget_area', 'docs_gppro_entry_widget_area', 15, 2 );
/**
 * add and filter options in the after entry widget
 *
 * @return array|string $sections
 */
function docs_gppro_entry_widget_area( $sections, $class ) {
	// change the titles
	$sections['after-entry-widget-back-setup']['data']['after-entry-widget-area-back']['label']  = __( 'Background Color', 'gppro' );
	$sections['after-entry-single-widget-setup']['data']['after-entry-widget-back']['label']  = __( 'Background Color', 'gppro' );

	// remove the border radius
	unset( $sections['after-entry-widget-back-setup']['data']['after-entry-widget-area-border-radius'] );
	unset( $sections['after-entry-single-widget-setup']['data']['after-entry-widget-border-radius'] );

	// Add background color for widget titles
	$sections['after-entry-widget-title-setup']['data'] = GP_Pro_Helper::array_insert_before(
	   'after-entry-widget-title-text', $sections['after-entry-widget-title-setup']['data'],
		array(
			'after-entry-widget-title-back'    => array(
				'label'     => __( 'Background Color', 'gppro' ),
				'input'		=> 'color',
				'target'	=> '.after-entry .widget .widget-title',
				'builder'	=> 'GP_Pro_Builder::hexcolor_css',
				'selector'	=> 'background-color'
			),
		)
	);

	return $sections;
}