Advertisement
verygoodplugins

Untitled

Dec 12th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1.         if( empty( $options['aweber_token'] ) && ! isset( $_GET['oauth_token'] ) ) {
  2.  
  3.             try {
  4.            
  5.                 $this->crm->connect();
  6.  
  7.                 $redirect_uri = get_admin_url() . 'options-general.php?page=wpf-settings#setup';
  8.                 $redirect_uri = apply_filters( 'wpf_aweber_redirect_uri', $redirect_uri );
  9.  
  10.                 list($request_token, $request_token_secret) = $this->crm->app->getRequestToken( $redirect_uri );
  11.  
  12.                 setcookie('request_token_secret', $request_token_secret );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement