Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook can be used to add new content before listing excerpt.
Usage
add_filter( 'wpbdp_before_excerpts', 'bd_add_pre_content' );
Parameters
- $pre_content (string) content to be added before excerpt.
Examples
Add content
This example will add extra content before listing excerpts start.
add_filter( 'wpbdp_before_excerpts', 'bd_add_pre_content' ); function bd_add_pre_content( $pre_content ) { $pre_content = 'content'; return $pre_content; }
Replace the value of $pre_content with the content you need to add
Change Log
Added in version 5.9