Filters the tabs on the Groundhogg tools page. Use this to add a custom tab for extension-specific tools or utilities.
apply_filters( 'groundhogg/admin/tools/tabs', $tabs );
You will receive the current array of tab definitions.
Example
add_filter( 'groundhogg/admin/tools/tabs', 'my_extension_add_tools_tab' );
/**
* Add a tools tab for My Extension.
*
* @param array $tabs
*
* @return array
*/
function my_extension_add_tools_tab( $tabs ) {
$tabs['my_extension'] = [
'title' => 'My Extension',
'id' => 'my_extension',
];
return $tabs;
}
Was this helpful?
Let us know if this document answered your question. Thatβs the only way we can improve.
