integration->get_actions();
$db_saved_value = $saved_integrations;
$repeater_count = ( is_array( $db_saved_value ) && count( $db_saved_value ) > 0 ) ? ( count( $db_saved_value ) - 1 ) : '0';
$is_edit = ( is_array( $db_saved_value ) && count( $db_saved_value ) > 0 ) ? 'yes' : 'no';
$db_filtered_saved_value = BWFAN_Core()->automations->get_filtered_automation_saved_data( $db_saved_value );
$delay_types = [
'immediately' => __( 'Immediately', 'wp-marketing-automations' ),
'after_delay' => __( 'After a delay', 'wp-marketing-automations' ),
'fixed' => __( 'Fixed', 'wp-marketing-automations' )
];
$delay_types = apply_filters( 'bwfan_delay_types', $delay_types );
?>
0 ) {
foreach ( $db_saved_value as $group_id => $group_actions ) {
foreach ( $group_actions as $key1 => $value1 ) {
if ( isset( $value1['integration_slug'] ) && isset( $all_actions[ $value1['action_slug'] ] ) && $all_actions[ $value1['action_slug'] ]->is_editor_supported() ) {
$unique_id = $value1['action_slug'] . '-' . $key1;
echo '
' . esc_html( stripslashes( $value1['data']['body'] ) ) . '
';
}
}
}
}
?>
$action_object ) {
$action_object->get_view();
/** Enqueue custom scripts */
do_action( 'bwfan_' . $action_object->get_slug() . '_add_script', $action_object );
}
?>
0 ) {
foreach ( $all_merge_tags as $group_key => $merge_tag ) {
foreach ( $merge_tag as $class => $tag_instance ) {
if ( ! $tag_instance->is_support_v1() ) {
continue;
}
?>