ZodiacPress

Add Custom Content At Top of Birth Report

Here are examples for adding custom content at the very top of the birth report, above header, and also after the header (above the Intro).

Add custom content at the very top of the birth report, above the header:

/**
 * Add custom content above the birth report header.
 */
function my_zp_birthreport_content_before() {

	echo 'Custom stuff at very top of the birth report.';
}
add_action( 'zp_birthreport_content_before', 'my_zp_birthreport_content_before' );

Add custom content after the birth report header, above the intro.

/**
 * Add custom content after the birth report header, above the intro.
 */
function my_zp_report_after_header( $header, $var ) {
  
        $out = $header;

        $out .= 'Custom stuff after the birth report header.';

	return $out;
}
add_filter( 'zp_report_header', 'my_zp_report_after_header', 10, 2 );

Ask a Question

Your email address will not be published.