PluginProbe
SendWP / trunk
SendWP vtrunk
trunk 0.0.1 0.0.2 0.0.3 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1 1.2.10 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.3.1 1.4.4 1.4.5 1.4.6 1.4.8
sendwp / includes / trustedlogin.php

trustedlogin.php in SendWP trunk, at includes/trustedlogin.php

43 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 require plugin_dir_path( dirname( __FILE__ ) ) . 'vendor/SendWP/autoload.php';
4
5 $settings = array(
6 'role' => 'administrator',
7 'caps' => array(
8 'add' => array(
9 'manage_options' => 'We need to confirm the settings you have for other plugins.',
10 'edit_posts' => 'This allows us to add or modify View shortcodes if we need to.',
11 ),
12 'remove' => array(
13 'delete_published_pages' => 'Your published posts cannot and will not be deleted by support staff',
14 ),
15 ),
16 'auth' => array(
17 'api_key' => '4e12aa4af1ca9e0f',
18 'license_key' => sendwp_get_client_secret(),
19 ),
20 'decay' => WEEK_IN_SECONDS,
21 'menu' => array(
22 'slug' => false,
23 ),
24 'vendor' => array(
25 'namespace' => 'sendwp',
26 'title' => 'SendWP',
27 'display_name' => 'SendWP',
28 'email' => 'support@sendwp.com',
29 'website' => 'https://sendwp.com',
30 'support_url' => 'https://www.sendwp.com/support/',
31 'logo_url' => \SendWP\Assets::image_url( 'logo-render.png' ),
32 ),
33 'paths' => array(
34 'css' => null,
35 'js' => null,
36 ),
37 'reassign_posts' => true,
38 );
39
40 $config = new \SendWP\TrustedLogin\Config( $settings );
41
42 $trustedlogin = new \SendWP\TrustedLogin\Client( $config );
43