• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / templates/shortcode-content-excerpt.php


Lines:

1 to 12 of 12
<?php $excerpt_length = apply_filters( 'excerpt_length', 30 ); ?>
<?php $item_prop = edd_add_schema_microdata() ? ' itemprop="description"' : ''; ?>
<?php if ( has_excerpt() ) : ?>
	<div<?php echo $item_prop; ?> class="edd_download_excerpt">
		<?php echo apply_filters( 'edd_downloads_excerpt', wp_trim_words( get_post_field( 'post_excerpt', get_the_ID() ), $excerpt_length ) ); ?>
	</div>
<?php elseif ( get_the_content() ) : ?>
	<div<?php echo $item_prop; ?> class="edd_download_excerpt">
		<?php echo apply_filters( 'edd_downloads_excerpt', wp_trim_words( get_post_field( 'post_content', get_the_ID() ), $excerpt_length ) ); ?>
	</div>
<?php endif; ?>
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      1 to 1 of 1
      • edd_add_schema_microdata() – Should we add schema.org microdata?

      Call hooks

      1 to 2 of 2
      • edd_downloads_excerpt – filter
      • excerpt_length – filter
      File name: templates/shortcode-content-excerpt.php
      Plugin ref: Easy Digital Downloads
      Version: 2.9.20
      Deprecated?: No
      API Letters: C,E,P,S,T

      Published: 26th November 2019 | Last updated: 26th November 2019

      Primary Sidebar

      Information

      File name: templates/shortcode-content-excerpt.php
      Plugin ref: Easy Digital Downloads
      Version: 2.9.20
      Deprecated?: No
      API Letters: C,E,P,S,T

      templates

      Footer

      Easy Digital Downloads a2z Easy Digital Downloads a2z
      Easy Digital Downloads a2z
      WordPress 5.3
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  edd.wp-a2z.org
      © Copyright Easy Digital Downloads a2z 2014-2019. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites