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 hook can be used to add new content before listing excerpt.


add_filter( 'wpbdp_before_excerpts', 'bd_add_pre_content' );


  • $pre_content (string) content to be added before excerpt.


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

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support