Function Reference: geodir_payments_description_field_desc_limit


Filter the add listing description field character limit.

Global Values

(object) (required) The current post object.

Default: None


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

Default: None

Return Values

  • 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;