breadcrumbspress_builder_day_title
Developer Knowledge Level
This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!
Definition
apply_filters( "breadcrumbspress_builder_day_title", $date, $year, $month, $day );
Arguments
Name
Type
Description
$date
string
The formatted date.
$year
integer
Year.
$month
integer
Month.
$day
integer
Day.
Returns
Return the date title.
Filters the formatted day title used by the date breadcrumb builder.
Example
This example registers a callback for the filter. Adapt the values and conditions to your site.
add_filter( 'breadcrumbspress_builder_day_title', function( $date, $year, $month, $day ) {
return sprintf( '%04d-%02d-%02d', $year, $month, $day );
}, 10, 4 );