The gform_system_status_page_SUBVIEW action is used to add additional pages to the Gravity Forms System Status menu.
Usage
add_action('gform_system_status_page_report', 'your_function_name');
Parameters
- $subview (string): Completes the action name, allowing an additional subview to be detected.
More information
See Gravity Forms Docs: gform_system_status_page_SUBVIEW
- Introduced in version 2.2
- Source code location:
system_status.php
- Place this code in the
functions.php
file of your active theme
Examples
Adding a Custom Report Subview
Add a custom report subview to the System Status menu and display custom content.
function custom_report_subview() { // Your custom code here echo "<h3>Custom Report</h3>"; echo "<p>This is a custom report added to the System Status menu.</p>"; } add_action('gform_system_status_page_custom_report', 'custom_report_subview');
Displaying PHP Information in a Subview
Add a subview to display PHP information on the System Status menu.
function phpinfo_subview() { // Your custom code here echo "<h3>PHP Information</h3>"; phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); } add_action('gform_system_status_page_phpinfo', 'phpinfo_subview');
Show Database Information
Add a subview to show information about the database used by Gravity Forms.
function show_database_info() { // Your custom code here global $wpdb; echo "<h3>Database Information</h3>"; echo "<p>Database Name: " . DB_NAME . "</p>"; echo "<p>Table Prefix: " . $wpdb->prefix . "</p>"; } add_action('gform_system_status_page_database_info', 'show_database_info');
List Active Plugins
Add a subview to list all active plugins in the System Status menu.
function list_active_plugins() { // Your custom code here echo "<h3>Active Plugins</h3>"; $plugins = get_option('active_plugins'); echo "<ul>"; foreach ($plugins as $plugin) { echo "<li>" . $plugin . "</li>"; } echo "</ul>"; } add_action('gform_system_status_page_active_plugins', 'list_active_plugins');
Show Gravity Forms Add-Ons
Add a subview to display information about installed Gravity Forms add-ons.
function show_gf_addons() { // Your custom code here echo "<h3>Gravity Forms Add-Ons</h3>"; $gf_addons = GFAddOn::get_registered_addons(); echo "<ul>"; foreach ($gf_addons as $addon) { $addon_instance = new $addon; echo "<li>" . $addon_instance->get_short_title() . " - Version " . $addon_instance->get_version() . "</li>"; } echo "</ul>"; } add_action('gform_system_status_page_gf_addons', 'show_gf_addons');