default_arguments ); if ( ! isset( $arguments['show_sync'] ) ) { return new WP_Error( 'missing-show_sync-argument', 'The show_sync argument is missing. The new show_sync value should be sent in the show_sync argument.' ); } $options = $GLOBALS['ithemes-sync-settings']->get_options(); $options['show_sync'] = $arguments['show_sync']; $GLOBALS['ithemes-sync-settings']->update_options( $options ); return array( 'success' => 1 ); } }