Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

frm_before_day_content

This hook can be used to add content at the beginning of a calendar day, before the entries are listed.

Usage

add_action( 'frm_before_day_content', 'ff_before_day_content' );
function ff_before_day_content( $pass_atts ) {

Parameters

  • $pass_atts (array)
    • event_date => the day's date in the calendar
    • day_count => the number of entries for that day
    • view => the View object

Examples

Display entry count at the beginning of calendar days

This code displays the total number of entries at the beginning of a day on a Calendar View.

add_action( 'frm_before_day_content', 'ff_day_count' );
function ff_day_count( $pass_atts ) {
	if ( $pass_atts['view']->ID === 608 ) {
		echo "<h4> Total: " . $pass_atts['day_count'] . "</h4>";
	}
}

Change:

  • 608 to your View ID
  • <h4></h4> to any HTML element you'd like
  • Total: to any content you'd like

You can also rewrite the echo statement as you'd like.

Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2025 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Complete your purchase
    Special offer unlocked.
    Get 55% OFF!
    Complete Purchase
    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms