Skip to content

Commit 7132e10

Browse files
committed
removed - freemius
1 parent 612b8b4 commit 7132e10

3 files changed

Lines changed: 20 additions & 122 deletions

File tree

accessibility-checker.php

Lines changed: 2 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -24,64 +24,8 @@
2424
die;
2525
}
2626

27-
/**
28-
* Freemius
29-
*/
30-
if ( ! function_exists( 'edac_fs' ) ) {
31-
/**
32-
* Create a helper function for easy SDK access.
33-
*
34-
* @return mixed
35-
*/
36-
function edac_fs() {
37-
global $edac_fs;
38-
39-
if ( ! isset( $edac_fs ) ) {
40-
// Include Freemius SDK.
41-
require_once dirname( __FILE__ ) . '/vendor/freemius/wordpress-sdk/start.php';
42-
43-
$edac_fs = fs_dynamic_init(
44-
array(
45-
'id' => '7322',
46-
'slug' => 'accessibility-checker',
47-
'type' => 'plugin',
48-
'public_key' => 'pk_5146b841819550deb8874ca70bc89',
49-
'is_premium' => false,
50-
'has_addons' => false,
51-
'has_paid_plans' => false,
52-
'menu' => array(
53-
'slug' => 'accessibility_checker',
54-
'first-path' => 'admin.php?page=accessibility_checker',
55-
'account' => false,
56-
'contact' => false,
57-
'support' => false,
58-
),
59-
)
60-
);
61-
}
62-
63-
return $edac_fs;
64-
}
65-
66-
// Init Freemius.
67-
edac_fs();
68-
69-
/**
70-
* Setup Freemius opt-in screen icon
71-
*
72-
* @return void
73-
*/
74-
function edac_fs_custom_icon() {
75-
return dirname( __FILE__ ) . '/assets/images/edac-emblem.png';
76-
}
77-
78-
edac_fs()->add_filter( 'plugin_icon' , 'edac_fs_custom_icon' );
79-
80-
81-
// Signal that SDK was initiated.
82-
do_action( 'edac_fs_loaded' );
83-
}
84-
27+
// Include plugin dependency.
28+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
8529

8630
/**
8731
* Setup constants.

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
"email": "dev@equalizedigital.com"
77
}
88
],
9-
"require": {
10-
"freemius/wordpress-sdk": "*"
11-
},
129
"config": {
1310
"allow-plugins": {
1411
"dealerdirect/phpcodesniffer-composer-installer": true

composer.lock

Lines changed: 18 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)