Created
September 22, 2014 18:34
-
-
Save mrwweb/bebf4cbdcf50d4eadd46 to your computer and use it in GitHub Desktop.
Example of fpw_auto_excerpt filter in Feature a Page Widget 2.0. By default, the widget only shows the excerpt for posts with an explicitly-set excerpt (i.e. has_excerpt() is TRUE).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set fpw_auto_excerpt to TRUE to allow auto-generated excerpts if the Excerpt field is blank | |
* | |
* Uses the_excerpt() and associated filters. | |
*/ | |
add_filter( 'fpw_auto_excerpt', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment