# betterdocs/4.9.3/views/template-parts/explore-more-btn.php

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

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.3/code/views/template-parts/explore-more-btn.php
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.3/raw/views/template-parts/explore-more-btn.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/template-parts/explore-more-btn.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 ( ! $show_button ) {
	return;
}

	$show_button_icon     = isset( $show_button_icon ) ? $show_button_icon : false;
	$button_icon_position = isset( $button_icon_position ) ? $button_icon_position : '';
?>

<a class="docs-cat-link-btn betterdocs-category-link-btn" href="<?php echo esc_attr( esc_url( $permalink ) ); ?>">
	<?php
	if ( $show_button_icon && ( $button_icon_position === 'before' || $button_icon_position === 'left' ) ) {
		betterdocs()->template_helper->icon( $button_icon, true );
	}

		echo wp_kses_post( $button_text );

	if ( $show_button_icon && ( $button_icon_position === 'after' || $button_icon_position === 'right' ) ) {
		betterdocs()->template_helper->icon( $button_icon, true );
	}
	?>
</a>

```
