Action tin-canny-learndash-reporting

tincanny_reporting_wrapper_after_tabs

Fires after the tab content for the Tincanny reporting interface has been rendered.

add_action( 'tincanny_reporting_wrapper_after_tabs', $callback, 10, 1 );

Description

Fires after the reporting tabs have been rendered within the Tincanny reporting wrapper. Use this hook to add custom content or functionality directly after the tab navigation but before the main reporting content area. This is ideal for injecting extra widgets, notices, or elements into the reporting interface.


Usage

add_action( 'tincanny_reporting_wrapper_after_tabs', 'your_function_name', 10, 1 );

Examples

<?php
/**
 * Example function hooked to tincanny_reporting_wrapper_after_tabs.
 *
 * This function demonstrates adding custom content or functionality
 * after the Tincanny reporting tabs have been rendered.
 * In this example, we'll add a simple message indicating that
 * additional reporting actions can be performed here.
 */
function my_custom_tincanny_reporting_content() {
    // Check if the current user has a specific capability to see this content.
    // This is a common pattern for conditional display of content.
    if ( current_user_can( 'manage_options' ) ) {
        ?>
        <div class="custom-reporting-section" style="margin-top: 20px; padding: 15px; background-color: #f0f0f0; border-left: 4px solid #0073aa;">
            <h3>Additional Reporting Actions</h3>
            <p>This section is displayed after the standard Tincanny reporting tabs. You could implement custom reports, export options, or other administrative tools here.</p>
            <p>For example, you might have a button here to <a href="#">Generate a Full Audit Report</a>.</p>
        </div>
        <?php
    }
}
add_action( 'tincanny_reporting_wrapper_after_tabs', 'my_custom_tincanny_reporting_content', 10, 0 );

Placement

This code should be placed in the functions.php file of your active theme, a custom plugin, or using a code snippets plugin.


Source Code

src/shortcode-tincanny/header.php:82

</a>

				<?php } ?>
			</div>

			<?php

			do_action( 'tincanny_reporting_wrapper_after_tabs' );

			?>
		</div>
	</nav>
	<?php } ?>
</div>

Scroll to Top