$wpdb
$wpdb :
What to do when the plugin is activated
__construct(object $wpdb, string $version, string $slug, string $option_prefix = '', array $schedulable_classes = array(), object $queue = '')
Constructor which sets up activate hooks
| object | $wpdb | |
| string | $version | |
| string | $slug | |
| string | $option_prefix | |
| array | $schedulable_classes | |
| object | $queue |
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 1293wordpress_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 1293add_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 1293set_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 1293wordpress_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 1293check_for_action_scheduler(object $upgrader_object, array $hook_extra)
Check whether the user has action scheduler tasks when they upgrade
| object | $upgrader_object | |
| array | $hook_extra | See https://developer.wordpress.org/reference/hooks/upgrader_process_complete/ |
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