Add_Popup_Maker_Integration::uap_add_new_popup_trigger( array $triggers )
Add a Automator trigger type to Popup Maker
Contents
Parameters Parameters
- $triggers
-
(Required) Existing triggers.
Return Return
(array)
Source Source
File: src/integrations/popup-maker/add-popup-maker-integration.php
public function uap_add_new_popup_trigger( $triggers ) { $triggers['automator'] = array( /* translators: 1. Trademarked term */ 'name' => sprintf( esc_attr__( '%1$s recipe is completed', 'uncanny-automator' ), 'Automator' ), 'modal_title' => esc_attr__( 'Settings', 'uncanny-automator' ), 'settings_column' => sprintf( '<strong>%1$s</strong>: %2$s', esc_attr__( 'Recipes', 'uncanny-automator' ), '{{data.recipe}}' ), 'fields' => array( 'general' => array( 'recipe' => array( 'label' => esc_attr__( 'Recipe', 'uncanny-automator' ), 'type' => 'postselect', 'post_type' => 'uo-recipe', 'multiple' => true, 'as_array' => true, 'std' => array(), ), ), ), ); return $triggers; }
Expand full source code Collapse full source code View on Github