# betterdocs/4.9.3/views/admin/email/analytics/search-keyword.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 4.9.3. 44 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/admin/email/analytics/search-keyword.php
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.3/raw/views/admin/email/analytics/search-keyword.php
- Modified: 2026-06-23T11:52:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/admin/email/analytics/search-keyword.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical.

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
if ( empty( $keywords ) || ! is_array( $keywords ) ) {
	return;
}
?>

<tr>
	<td style="text-align: left; font-size: 20px; padding-top: 40px;">
		<?php esc_html_e( 'Most Searched Keywords', 'betterdocs' ); ?>
	</td>
</tr>
<tr>
	<td>
		<table style="width: 100%; border-collapse: separate; border-spacing: 2px; padding-top: 20px;">
			<tr style="background: #fff;">
				<th style="text-align: left; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 15px; width: 50%;">
					<?php esc_html_e( 'Search Keyword', 'betterdocs' ); ?>
				</th>
				<th style="text-align: center; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 15px">
					<?php esc_html_e( 'Total Search', 'betterdocs' ); ?>
				</th>
				<th style="text-align: center; font-size: 14px; font-weight: 600; color:#6e6e73; text-transform: capitalize; padding: 8px 15px">
					<?php esc_html_e( 'Result Found', 'betterdocs' ); ?>
				</th>
			</tr>
			<?php
			foreach ( $keywords as $keyword ) {
				betterdocs()->views->get(
					'admin/email/analytics/parts/single-keyword',
					[
						'keyword' => $keyword
					]
				);
			}
			?>
		</table>
	</td>
</tr>

```
