This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action('fluentcrm_subscriber_status_to_subscribed', function ($subscriber, $oldStatus) { | |
| // Only act when moving from pending to subscribed | |
| if ($oldStatus !== 'pending' || !$subscriber || empty($subscriber->id)) { | |
| return; | |
| } | |
| $tagName = 'Onboarding'; // change as needed | |
| // Ensure the tag exists (FluentCRM model API) | |
| if (class_exists('\FluentCrm\App\Models\Tag')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action('fluent_community/headless/head', function() { | |
| echo '<style> | |
| label { | |
| color: #fff !important; | |
| } | |
| a { | |
| color: #fff !important; | |
| text-decoration: underline !important; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action('fluent_community/headless/head', function() { | |
| echo '<style> | |
| .fcom_layout_side { | |
| background-color: #2c2e34 !important; | |
| } | |
| </style>'; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function add_open_graph_tags() { | |
| if (is_single() || is_page()) { | |
| global $post; | |
| $featured_image = get_the_post_thumbnail_url($post->ID, 'full'); | |
| $default_image = 'https://verenakrone.de/path-to-default-image.jpg'; // Replace with your default image URL | |
| ?> | |
| <meta property="og:title" content="<?php echo get_the_title(); ?>" /> | |
| <meta property="og:description" content="<?php echo get_the_excerpt(); ?>" /> | |
| <meta property="og:image" content="<?php echo $featured_image ? $featured_image : $default_image; ?>" /> | |
| <meta property="og:url" content="<?php echo get_permalink(); ?>" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('fluent_community/portal_head', function() { | |
| ?> | |
| <style> | |
| ul.fcom_space_menu_ul { | |
| flex-direction: column !important; | |
| } | |
| .object_menu ul.fcom_space_menu_ul{ | |
| align-items: flex-start !important; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('fluent_support/custom_registration_form_fields', function($fields) { | |
| $fields['phone_number'] = [ | |
| 'required' => false, | |
| 'type' => 'number', | |
| 'label' => __('Phone Number', 'fluent-support'), | |
| 'id' => 'fst_phone_number', | |
| 'placeholder' => __('phone_number', 'fluent-support'), | |
| 'wrapper_class' => 'fs_half_field', | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('fluent_support/ticket_status_groups', function ($statusGroups) { | |
| // Modify the array keys | |
| $statusGroups['khula'] = $statusGroups['open']; | |
| $statusGroups['choler'] = $statusGroups['active']; | |
| $statusGroups['bondo'] = $statusGroups['closed']; | |
| $statusGroups['notun'] = $statusGroups['new']; | |
| $statusGroups['hokol_ticket'] = $statusGroups['all']; | |
| // Remove the old keys if necessary | |
| unset($statusGroups['open']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('fluent_support/customer_ticket_priorities', function ($priorities) { | |
| // Change 'Normal' to 'priority_1' | |
| $priorities['normal'] = __('priority_1', 'fluent-support'); | |
| // Change 'Medium' to 'priority_2' | |
| $priorities['medium'] = __('priority_2', 'fluent-support'); | |
| // Change 'Critical' to 'priority_3' | |
| $priorities['critical'] = __('priority_3', 'fluent-support'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('fluentform/rendering_field_data_select', 'populateUserRoleAsDropdownValue', 10, 2); | |
| add_filter('fluentform/editor_init_element_select', 'populateUserRoleAsDropdownValue', 10, 2); | |
| function populateUserRoleAsDropdownValue($data, $form) | |
| { | |
| if ($form->id != '678') { | |
| return $data; | |
| } | |
| // Check if the field name is not what you want |
NewerOlder