| 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 |
|