| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: BugHerd |
| 4 |
* Plugin URI: https://bugherd.com |
| 5 |
* Description: BugHerd is the visual feedback tool for websites. For help, go to <a href="http://support.bugherd.com">support.bugherd.com</a> |
| 6 |
* Author: BugHerd |
| 7 |
* Author URI: https://bugherd.com |
| 8 |
* Text Domain: bugherd |
| 9 |
* Version: 1.0.20 |
| 10 |
* License: GPLv3 or later |
| 11 |
* |
| 12 |
* @package BugHerd |
| 13 |
*/ |
| 14 |
|
| 15 |
// If this file is called directly, abort. |
| 16 |
if ( ! defined( 'WPINC' ) ) { |
| 17 |
die; |
| 18 |
} |
| 19 |
|
| 20 |
/** |
| 21 |
* Bootstrap |
| 22 |
* |
| 23 |
* @since 1.0.0 |
| 24 |
*/ |
| 25 |
require_once plugin_dir_path( __FILE__ ) . 'includes/settings.php'; |
| 26 |
require_once plugin_dir_path( __FILE__ ) . 'includes/scripts.php'; |
| 27 |
|
| 28 |
/** |
| 29 |
* Add a "Settings" link in the Plugins section. |
| 30 |
*/ |
| 31 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'bugherd_add_settings_link' ); |
| 32 |
function bugherd_add_settings_link( $links ) { |
| 33 |
$settings_link = '<a href="' . esc_url(admin_url('options-general.php?page=bugherd')) . '">' . esc_html__('Settings', 'bugherd') . '</a>'; |
| 34 |
array_unshift( $links, $settings_link ); // Adds it at the beginning of the links |
| 35 |
return $links; |
| 36 |
} |
| 37 |
|