Sid Gifari File Manager
🏠 Root
/
home
/
genremedia08
/
thepassage.overlookedtracks.com
/
wp-content9
/
plugins
/
ithemes-sync
/
verbs
/
Editing: deauthenticate-user.php
<?php /* Implementation of the deauthenticate-user verb. Written by Chris Jean for iThemes.com Version 1.0.0 Version History 1.0.0 - 2013-11-19 - Chris Jean Initial version */ class Ithemes_Sync_Verb_Deauthenticate_User extends Ithemes_Sync_Verb { public static $name = 'deauthenticate-user'; public static $description = 'Disconnect a user.'; private $default_arguments = []; public function run( $arguments ) { if ( empty( $arguments['user_id'] ) ) { $response = new WP_Error( 'missing-user_id', 'The user_id argument is missing. The user could not be disconnected.' ); } elseif ( empty( $arguments['username'] ) ) { $response = new WP_Error( 'missing-username', 'The username argument is missing. The user could not be disconnected.' ); } else { $response = $GLOBALS['ithemes-sync-settings']->remove_authentication( $arguments['user_id'], $arguments['username'] ); if ( true === $response ) { $response = [ 'success' => 1 ]; } } return $response; } }
Save
Cancel