WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Admin_API_Keys::table_list_output() private WC 1.0

Table list output.

Это метод класса: WC_Admin_API_Keys{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$result = WC_Admin_API_Keys::table_list_output();

Код WC_Admin_API_Keys::table_list_output() WC 4.5.2

woocommerce/includes/admin/class-wc-admin-api-keys.php
<?php
private static function table_list_output() {
	global $wpdb, $keys_table_list;

	echo '<h2 class="wc-table-list-header">' . esc_html__( 'REST API', 'woocommerce' ) . ' <a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=advanced&section=keys&create-key=1' ) ) . '" class="add-new-h2">' . esc_html__( 'Add key', 'woocommerce' ) . '</a></h2>';

	// Get the API keys count.
	$count = $wpdb->get_var( "SELECT COUNT(key_id) FROM {$wpdb->prefix}woocommerce_api_keys WHERE 1 = 1;" );

	if ( absint( $count ) && $count > 0 ) {
		$keys_table_list->prepare_items();

		echo '<input type="hidden" name="page" value="wc-settings" />';
		echo '<input type="hidden" name="tab" value="advanced" />';
		echo '<input type="hidden" name="section" value="keys" />';

		$keys_table_list->views();
		$keys_table_list->search_box( __( 'Search key', 'woocommerce' ), 'key' );
		$keys_table_list->display();
	} else {
		echo '<div class="woocommerce-BlankState woocommerce-BlankState--api">';
		?>
		<h2 class="woocommerce-BlankState-message"><?php esc_html_e( 'The WooCommerce REST API allows external apps to view and manage store data. Access is granted only to those with valid API keys.', 'woocommerce' ); ?></h2>
		<a class="woocommerce-BlankState-cta button-primary button" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings&tab=advanced&section=keys&create-key=1' ) ); ?>"><?php esc_html_e( 'Create an API key', 'woocommerce' ); ?></a>
		<style type="text/css">#posts-filter .wp-list-table, #posts-filter .tablenav.top, .tablenav.bottom .actions { display: none; }</style>
		<?php
	}
}