Function Reference: geodir_show_listing_post_excerpt
Summary
Filter to hide the listing excerpt.
Parameters
- $display
- (bool) (required) Display the excerpt or not.
- Default: None
- $view
- (string) (required) The view type, Ex: ‘listview’.
- Default: None
- $post
- (object) (required) The post object.
- Default: None
Return Values
- (bool)
- Modified value for display the excerpt.
Change Log
Since: 1.5.7
Source File
geodir_show_listing_post_excerpt() is located in geodirectory-functions/template_functions.php [Line: 591]
Source Code
function geodir_show_listing_post_excerpt($display, $view, $post) { if ($view == 'listview') { if (geodir_is_page('author')) { $word_limit = get_option('geodir_author_desc_word_limit'); } else { $word_limit = get_option('geodir_desc_word_limit'); } if ($word_limit !== '' && ($word_limit == 0 || $word_limit == '0')) { $display = false; } } return $display; }