woocommerce/includes/admin/views/html-admin-page-status-tool...

31 lines
1000 B
PHP
Raw Normal View History

<?php
/**
* Admin View: Page - Status Tools
2021-04-28 07:36:10 +00:00
*
* @package WooCommerce
*/
if ( ! defined( 'ABSPATH' ) ) {
2015-03-07 03:16:08 +00:00
exit;
}
?>
<form method="post" action="options.php">
<?php settings_fields( 'woocommerce_status_settings_fields' ); ?>
2017-08-30 14:39:54 +00:00
<table class="wc_status_table wc_status_table--tools widefat" cellspacing="0">
<tbody class="tools">
2021-04-28 07:36:10 +00:00
<?php foreach ( $tools as $action_name => $tool ) : ?>
<tr class="<?php echo sanitize_html_class( $action_name ); ?>">
2017-08-15 11:05:34 +00:00
<th>
<strong class="name"><?php echo esc_html( $tool['name'] ); ?></strong>
<p class="description"><?php echo wp_kses_post( $tool['desc'] ); ?></p>
</th>
<td class="run-tool">
2021-04-28 07:36:10 +00:00
<a href="<?php echo esc_url( wp_nonce_url( admin_url( 'admin.php?page=wc-status&tab=tools&action=' . $action_name ), 'debug_action' ) ); ?>" class="button button-large <?php echo esc_attr( $action_name ); ?>"><?php echo esc_html( $tool['button'] ); ?></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</form>