# FluentCRM Core Helper Class

  • Class with Namespace: \FluentCrm\App\Services\Helper
  • Method Types: static

# Helper::getProfileSections()

The Helper::getProfileSections method returns contact's profile section sub navigation items as keyed array

$sections = FluentCrm\App\Services\Helper::getProfileSections();

/*
[

    'subscriber'        => [
        'name'    => 'subscriber',
        'title'   => __('Overview', 'fluent-crm'),
        'handler' => 'route'
    ],
    'subscriber_emails' => [
        'name'    => 'subscriber_emails',
        'title'   => __('Emails', 'fluent-crm'),
        'handler' => 'route'
    ],
    .....,
    .....
]
*/
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

Available Filter: fluentcrm_profile_sections

# Helper::getGlobalSmartCodes()

The Helper::getGlobalSmartCodes method returns smartcodes for the contacts

$sections = FluentCrm\App\Services\Helper::getGlobalSmartCodes();

/*
[
    [
         'key'        => 'contact',
         'title'      => __('Contact', 'fluent-crm'),
         'shortcodes' => apply_filters('fluentcrm_contact_smartcodes', [
            '{{contact.full_name}}'      => __('Full Name', 'fluent-crm'),
            '....' => '....',
            '....' => '....',
         ]
    ],
    [
        'key'        => 'contact_custom_fields',
        'title'      => __('Custom Fields', 'fluent-crm'),
        'shortcodes' => apply_filters('fluentcrm_contact_smartcodes', [
            '{{contact.custom.key_1}}'      => 'Custom Field Label',
            '....' => '....',
            '....' => '....',
         ]
    ],
    [
        'key'        => 'general',
        'title'      => __('General', 'fluent-crm'),
        'shortcodes' => apply_filters('fluentcrm_general_smartcodes', [
            '{{crm.business_name}}' => __('Business Name', 'fluent-crm'),
            '....' => '....',
            '....' => '....',
        ]
    ]
]
*/
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33