breadcrumbspress_builder_month_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_month_title", $title, $year, $month );
Arguments
Name
Type
Description
$title
string
The localized month and year.
$year
integer
Year.
$month
integer
Month.
Returns
Return the month title.
Filters the month-and-year 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_month_title', function( $title, $year, $month ) {
return sprintf( '%04d-%02d', $year, $month );
}, 10, 3 );