Menu

## Object_Sync_Sf_Deactivate
in package

class-object-sync-sf-deactivate.php : 14

Object_Sync_Sf_Deactivate class.

### Table of Contents

$action_group_suffix : string
  Suffix for group name in ActionScheduler
$file : string
  The main plugin file
$option_prefix : string
  The plugin's prefix when saving options to the database
$queue : object
  Object_Sync_Sf_Queue class
$schedulable_classes : array<string|int, mixed>
  Array of what classes in the plugin can be scheduled to occur with `wp_cron` events
$slug : string
  The plugin's slug so we can include it when necessary
$version : string
  Current version of the plugin
$wpdb : object
  Global object of `$wpdb`, the WordPress database
__construct() : mixed
  Constructor for deactivate class
clear_schedule() : mixed
  Clear the scheduled tasks This removes all the scheduled tasks that are included in the plugin's $schedulable_classes array
delete_log_post_type() : mixed
  Delete the log post type This removes the log post type
delete_plugin_options() : mixed
  Clear the plugin options
flush_plugin_cache() : mixed
  Flush the plugin cache
remove_roles_capabilities() : mixed
  Remove roles and capabilities This removes the configure_salesforce capability from the admin role
wordpress_salesforce_drop_tables() : mixed
  Drop database tables for Salesforce This removes the tables for fieldmaps (between types of objects) and object maps (between indidual instances of objects)

### Properties

#### $action_group_suffix

class-object-sync-sf-deactivate.php : 56

Suffix for group name in ActionScheduler

`public string $action_group_suffix`

#### $file

class-object-sync-sf-deactivate.php : 28

The main plugin file

`public string $file`

#### $option_prefix

class-object-sync-sf-deactivate.php : 49

The plugin's prefix when saving options to the database

`public string $option_prefix`

#### $queue

class-object-sync-sf-deactivate.php : 70

Object_Sync_Sf_Queue class

`public object $queue`

#### $schedulable_classes

class-object-sync-sf-deactivate.php : 63

Array of what classes in the plugin can be scheduled to occur with `wp_cron` events

`public array<string|int, mixed> $schedulable_classes`

#### $slug

class-object-sync-sf-deactivate.php : 42

The plugin's slug so we can include it when necessary

`public string $slug`

#### $version

class-object-sync-sf-deactivate.php : 21

Current version of the plugin

`public string $version`

#### $wpdb

class-object-sync-sf-deactivate.php : 35

Global object of `$wpdb`, the WordPress database

`public object $wpdb`

### Methods

#### __construct()

class-object-sync-sf-deactivate.php : 75

Constructor for deactivate class

`public __construct() : mixed`

##### Return values

mixed —

#### clear_schedule()

class-object-sync-sf-deactivate.php : 113

Clear the scheduled tasks This removes all the scheduled tasks that are included in the plugin's $schedulable_classes array

`public clear_schedule() : mixed`

##### Return values

mixed —

#### delete_log_post_type()

class-object-sync-sf-deactivate.php : 127

Delete the log post type This removes the log post type

`public delete_log_post_type() : mixed`

##### Return values

mixed —

#### delete_plugin_options()

class-object-sync-sf-deactivate.php : 166

Clear the plugin options

`public delete_plugin_options() : mixed`

##### Return values

mixed —

#### flush_plugin_cache()

class-object-sync-sf-deactivate.php : 158

Flush the plugin cache

`public flush_plugin_cache() : mixed`

##### Return values

mixed —

#### remove_roles_capabilities()

class-object-sync-sf-deactivate.php : 137

Remove roles and capabilities This removes the configure_salesforce capability from the admin role

`public remove_roles_capabilities() : mixed`

It also allows other plugins to remove the capability from other roles

##### Return values

mixed —

#### wordpress_salesforce_drop_tables()

class-object-sync-sf-deactivate.php : 101

Drop database tables for Salesforce This removes the tables for fieldmaps (between types of objects) and object maps (between indidual instances of objects)

`public wordpress_salesforce_drop_tables() : mixed`

##### Return values

mixed —

## Search results