Function Reference: geodir_payments_listing_tags_field_tags_count


Filter the add listing tags field character limit.

Global Values

(object) (required) The current post object.

Default: None


(int) (required) The amount of characters to limit the tags to.

Default: None

Return Values

  • characters limit.

Change Log

Since: 1.0.0

Source Code

function geodir_payments_listing_tags_field_tags_count($tags_count) {
	global $post;
	$package_info = geodir_post_package_info(array(), $post);
	$tag_limit_enabled = geodir_payments_tag_limit_enabled($package_info);
	$tag_limit = geodir_payments_get_tag_limit($package_info);
	if ($tag_limit_enabled) {
		$tags_count = $tag_limit;
	return $tags_count;