-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmexp-creds.php
54 lines (39 loc) · 1.43 KB
/
mexp-creds.php
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
45
46
47
48
49
50
51
52
53
54
<?php
/*
Plugin Name: MEXP oAuth Credentials
Description: MEXP oAuth Credentials
Version: 1.0
Author: John Blackbourn
Author URI: https://johnblackbourn.com/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
add_filter( 'mexp_twitter_credentials', 'mexp_twitter_credentials_callback' );
function mexp_twitter_credentials_callback() {
return array(
'consumer_key' => '',
'consumer_secret' => '',
'oauth_token' => '',
'oauth_token_secret' => ''
);
}
add_filter( 'mexp_youtube_developer_key', 'mexp_youtube_developer_key_callback' );
function mexp_youtube_developer_key_callback() {
// Add your developer key here.
// Get your developer key at: <https://code.google.com/apis/console>
return '';
}
add_filter( 'mexp_instagram_credentials', 'mexp_instagram_credentials_callback' );
function mexp_instagram_credentials_callback( $credentials ) {
// Add your developer key here.
// Get your developer key at: <https://instagram.com/developer>
return array(
'access_token' => '',
);
}