Function Reference: geodir_payments_description_field_desc_limit

Summary

Filter the add listing description field character limit.

Global Values

$post
(object) (required) The current post object.

Default: None

Parameters

$desc_limit
(int) (required) The amount of characters to limit the description to.

Default: None

Return Values

(Description)
  • characters limit.

Change Log

Since: 1.0.0

Source Code

function geodir_payments_description_field_desc_limit($desc_count) {
	global $post;
	$package_info = geodir_post_package_info(array(), $post);
	$desc_limit_enabled = geodir_payments_desc_limit_enabled($package_info);
	$desc_limit = geodir_payments_get_desc_limit($package_info);
	if ($desc_limit_enabled) {
		$desc_count = $desc_limit;
	}
	return $desc_count;
}