Add filtering for system status page tabs and actions too
This commit is contained in:
parent
15402c2c3d
commit
58a04a1922
|
@ -13,7 +13,7 @@ $tabs = array(
|
||||||
'tools' => __( 'Tools', 'woocommerce' ),
|
'tools' => __( 'Tools', 'woocommerce' ),
|
||||||
'logs' => __( 'Logs', 'woocommerce' ),
|
'logs' => __( 'Logs', 'woocommerce' ),
|
||||||
);
|
);
|
||||||
|
$tabs = apply_filters( 'woocommerce_admin_status_tabs', $tabs );
|
||||||
?>
|
?>
|
||||||
<div class="wrap woocommerce">
|
<div class="wrap woocommerce">
|
||||||
<nav class="nav-tab-wrapper woo-nav-tab-wrapper">
|
<nav class="nav-tab-wrapper woo-nav-tab-wrapper">
|
||||||
|
@ -35,7 +35,11 @@ $tabs = array(
|
||||||
WC_Admin_Status::status_logs();
|
WC_Admin_Status::status_logs();
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
WC_Admin_Status::status_report();
|
if ( has_action( 'woocommerce_admin_status_' . $current_tab ) ) {
|
||||||
|
do_action( 'woocommerce_admin_status_' . $current_tab );
|
||||||
|
} else {
|
||||||
|
WC_Admin_Status::status_report();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue