Function Reference: geodir_advance_customfields_heading

Summary

Removes the section title

Description

Removes the section title “Posts sort options”, if the custom field type is multiselect or textarea or taxonomy.
Can be found here. WP Admin -> Geodirectory -> Place settings -> Custom fields

Package

GeoDirectory

Parameters

$title
(string) (required) The section title.

Default: None
$field_type
(string) (required) The field type.

Default: None

Return Values

(string)
  • Returns the section title.

Change Log

Since: 1.0.0

Source File

geodir_advance_customfields_heading() is located in geodirectory-functions/custom_functions.php [Line: 711]

Source Code

function geodir_advance_customfields_heading( $title, $field_type ) {

	if ( in_array( $field_type, array( 'multiselect', 'textarea', 'taxonomy' ) ) ) {
		$title = '';
	}

	return $title;
}