-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path10up-experience.php
More file actions
44 lines (37 loc) · 1.26 KB
/
10up-experience.php
File metadata and controls
44 lines (37 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Plugin Name: 10up Experience
* Description: The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10up’s best practices.
* Version: 1.2
* Author: 10up
* Author URI: https://10up.com
* License: GPLv2 or later
* Text Domain: tenup
* Domain Path: /languages/
*
* @package 10up-experience
*/
define( 'TENUP_EXPERIENCE_VERSION', '1.2' );
require_once __DIR__ . '/includes/admin.php';
require_once __DIR__ . '/includes/admin-bar.php';
require_once __DIR__ . '/includes/admin-pages.php';
require_once __DIR__ . '/includes/plugins.php';
require_once __DIR__ . '/includes/rest-api.php';
require_once __DIR__ . '/includes/limit-roles.php';
require_once __DIR__ . '/vendor/plugin-update-checker/plugin-update-checker.php';
$tenup_plugin_updater = Puc_v4_Factory::buildUpdateChecker(
'https://github.com/10up/10up-experience/',
__FILE__,
'10up-experience'
);
if ( defined( 'TENUP_EXPERIENCE_GITHUB_KEY' ) ) {
$tenup_plugin_updater->setAuthentication( TENUP_EXPERIENCE_GITHUB_KEY );
}
$tenup_plugin_updater->addResultFilter(
function( $plugin_info, $http_response = null ) {
$plugin_info->icons = array(
'svg' => plugins_url( '/assets/img/tenup.svg', __FILE__ ),
);
return $plugin_info;
}
);