Bdb_Tokens::bdb_bdbforums_possible_tokens( array $tokens = array(), array $args = array() )
Possible tokens.
Contents
Parameters Parameters
- $tokens
-
(Optional)
Default value: array()
- $args
-
(Optional)
Default value: array()
Return Return
(array)
Source Source
File: src/integrations/buddyboss/tokens/bdb-tokens.php
public function bdb_bdbforums_possible_tokens( $tokens = array(), $args = array() ) { $trigger_integration = $args['integration']; $trigger_meta = $args['meta']; $fields = [ [ 'tokenId' => 'BDBTOPICID', 'tokenName' => __( 'Topic ID', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'BDBNEWTOPIC', ], [ 'tokenId' => 'BDBTOPICTITLE', 'tokenName' => __( 'Topic title', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'BDBNEWTOPIC', ], [ 'tokenId' => 'BDBTOPICURL', 'tokenName' => __( 'Topic URL', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'BDBNEWTOPIC', ], [ 'tokenId' => 'BDBTOPICCONTENT', 'tokenName' => __( 'Topic content', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'BDBNEWTOPIC', ], ]; $tokens = array_merge( $tokens, $fields ); return $tokens; }
Expand full source code Collapse full source code View on Github