' . esc_html__( 'Settings', 'ai-chat-for-amazon-bedrock' ) . '',
'' . esc_html__( 'Diagnostics', 'ai-chat-for-amazon-bedrock' ) . '',
);
return array_merge( $own, (array) $links );
}
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'ai_chat_bedrock_action_links' );
/**
* Link to the support forum beside the plugin's description on the Plugins screen.
*
* @param array $links Links under the description.
* @param string $file Plugin the row is for.
* @return array
*/
function ai_chat_bedrock_row_meta( $links, $file ) {
if ( plugin_basename( __FILE__ ) === $file ) {
$links[] = '' . esc_html__( 'Support', 'ai-chat-for-amazon-bedrock' ) . '';
}
return $links;
}
add_filter( 'plugin_row_meta', 'ai_chat_bedrock_row_meta', 10, 2 );
/**
* Declare WooCommerce feature compatibility. WooCommerce asks before it loads, so this cannot
* wait for the plugin's own hooks.
*/
function ai_chat_bedrock_declare_woocommerce_compatibility() {
if ( class_exists( 'AI_Chat_Bedrock_WooCommerce' ) ) {
AI_Chat_Bedrock_WooCommerce::declare_compatibility( __FILE__ );
}
}
add_action( 'before_woocommerce_init', 'ai_chat_bedrock_declare_woocommerce_compatibility' );
// The plugin follows the WP Consent API: what it stores is described and analytics wait for consent.
add_filter( 'wp_consent_api_registered_' . plugin_basename( __FILE__ ), '__return_true' );
require AI_CHAT_BEDROCK_PLUGIN_DIR . 'includes/class-ai-chat-bedrock.php';
function ai_chat_bedrock_run_plugin() {
$plugin = new AI_Chat_Bedrock();
$plugin->run();
}
ai_chat_bedrock_run_plugin();