Uoa_Tokens::possible_tokens( array $tokens = array(), array $args = array() )
Contents
Parameters Parameters
- $tokens
-
(array) (Optional)
Default value: array()
- $args
-
(array) (Optional)
Default value: array()
Return Return
(array)
Source Source
File: src/integrations/uncanny-automator/tokens/uoa-tokens.php
public function possible_tokens( $tokens = array(), $args = array() ) { $new_tokens = array(); $new_tokens[] = [ 'tokenId' => 'UOAERRORS', 'tokenName' => esc_attr__( 'Recipe ID', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'UOAERRORS_recipe_id', ]; $new_tokens[] = [ 'tokenId' => 'UOAERRORS', 'tokenName' => esc_attr__( 'Recipe title', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'UOAERRORS_recipe_title', ]; $new_tokens[] = [ 'tokenId' => 'UOAERRORS', 'tokenName' => esc_attr__( 'Recipe edit link', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'UOAERRORS_recipe_edit_link', ]; $new_tokens[] = [ 'tokenId' => 'UOAERRORS', 'tokenName' => esc_attr__( 'Recipe log URL', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'UOAERRORS_recipe_log_url', ]; $new_tokens[] = [ 'tokenId' => 'UOAERRORS', 'tokenName' => esc_attr__( 'Action log URL', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'UOAERRORS_action_log_url', ]; $tokens = array_merge( $tokens, $new_tokens ); return $tokens; }
Expand full source code Collapse full source code View on Github