Properties

$wpdb

$wpdb : 

Type

$version

$version : 

Type

$slug

$slug : 

Type

$option_prefix

$option_prefix : 

Type

$schedulable_classes

$schedulable_classes : 

Type

$queue

$queue : 

Type

$installed_version

$installed_version : 

Type

Methods

__construct()

__construct(object  $wpdb, string  $version, string  $slug, string  $option_prefix = '', array  $schedulable_classes = array(), object  $queue = '') 

Constructor which sets up activate hooks

Parameters

object $wpdb
string $version
string $slug
string $option_prefix
array $schedulable_classes
object $queue
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

php_requirements()

php_requirements() 

Check for the minimum required version of php

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

wordpress_salesforce_tables()

wordpress_salesforce_tables() 

Create database tables for Salesforce This creates tables for fieldmaps (between types of objects) and object maps (between indidual instances of objects)

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

add_roles_capabilities()

add_roles_capabilities() 

Add roles and capabilities This adds the configure_salesforce capability to the admin role

It also allows other plugins to add the capability to other roles

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

set_installed_version()

set_installed_version() 

Set the installed version

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

wordpress_salesforce_update_db_check()

wordpress_salesforce_update_db_check() 

Check for database version When the plugin is loaded in the admin, if the database version does not match the current version, perform these methods

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

check_for_action_scheduler()

check_for_action_scheduler(object  $upgrader_object, array  $hook_extra) 

Check whether the user has action scheduler tasks when they upgrade

Parameters

object $upgrader_object
array $hook_extra

See https://developer.wordpress.org/reference/hooks/upgrader_process_complete/

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

add_actions()

add_actions() 

Activation hooks

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293