website logo
Thrive Themes
Navigate through spaces
Thrive Themes
⌘K
General
⚙️Thrive Themes Action Hooks & Custom Functions
⚙️How Can You Extend Thrive Themes Capabilities as a Developer
⚙️How to Integrate Your Thrive Themes Site to a Third Party Autoresponder
Thrive Architect
⚙️How to Develop Custom Rules For the Conditional Display Option
Thrive Automator
Untitled doc
⚙️Thrive Automator for Developers - Extending Automations' Capabilities
⚙️What Type of Data Do Thrive Automator Triggers and Actions Use?
⚙️Creating a New Start Trigger
⚙️Creating a New Filter in Thrive Automator
⚙️Creating a New Action in Thrive Automator
⚙️Creating Data Fields
⚙️Creating Trigger Fields
⚙️Creating Action Fields
⚙️Creating Apps
⚙️Creating Data Objects
Docs powered by archbee 
11min

Creating Apps

About apps

Apps represent the applications or categories to which triggers/actions belong to, and are mostly used for grouping items inside an automation. For example, triggers and actions related to WooCommerce implementation are stored under the WooCommerce App.

Creating your first app

To create your own App you need to extend Thrive\Automator\Items\App and implement the required basic methods.

  • abstract public static function get_id(): string - should return a unique identifier that will be displayed in the automation editor. To avoid conflicts or overwrites we suggest using a prefix
PHP
|
<?php
public static function get_id(): string {
		return 'woocommerce';
	}

  • abstract public static function get_name(): string - the name of the app that will be displayed in the admin 
PHP
|
<?php
public static function get_name(): string {
		return 'WooCommerce';
	}

  • abstract public static function get_description(): string - a short description for the field to help users understand what it represents
PHP
|
<?php
public static function get_description(): string {
		return 'This app contains WooCommerce integration with Thrive Automator';
	}

  • abstract public static function get_logo(): string - a nice image to be displayed on the app card inside the automation editor
PHP
|
<?php
public static function get_logo(): string {
		return 'tap-woocommerce-logo';
	}


Other methods

  • public static function has_access(): string - can be used to condition the display of the app in the Automator UI
PHP
|
<?php
public static function has_access() {
		return class_exists( 'WooCommerce' );
	}


  • public static function get_acccess_url(): string - provides an url where the user can learn more about the application and how to get access its features
PHP
|
<?php
public static function get_acccess_url() {
		return 'https://woocommerce.com/';
	}


Registering the app

To register an App so it can be used by data objects and filters, we should use the thrive_automator_register_app function which receives as the only parameter, the class name.

Updated 03 Mar 2023
Did this page help you?
Yes
No
UP NEXT
Creating Data Objects
Docs powered by archbee 
TABLE OF CONTENTS
About apps
Creating your first app
Other methods
Registering the app