Function Reference: geodir_detail_page_related_post_add_location_filter_checkbox

Summary

This add a new filed in Geodirectory > Design > Detail > Related Post Settings.

Package

GeoDirectory_Location_Manager

Parameters

$arr
(array) (required) GD design settings array.

Default: None

Return Values

(array)
  • Filtered GD design settings array.

Change Log

Since: 1.0.0

Source File

geodir_detail_page_related_post_add_location_filter_checkbox() is located in geodir_location_manager/geodir_location_hooks_actions.php [Line: 698]

Source Code

function geodir_detail_page_related_post_add_location_filter_checkbox($arr)
{
	$location_design_array = array();
	foreach($arr as $key => $val)
	{
		$location_design_array[] = $val;
		if($val['id'] == 'geodir_related_post_excerpt')
		{
			$location_design_array[] = array(  
											'name' => __( 'Enable Location Filter:', GEODIRLOCATION_TEXTDOMAIN ),
											'desc' 		=> __( 'Enable location filter on related post.', GEODIRLOCATION_TEXTDOMAIN ),
											'id' 		=> 'geodir_related_post_location_filter',
											'type' 		=> 'checkbox',
											'std' 		=> '1' // Default value to show home top section
										);
		}
	}
	return $location_design_array;
}