Skip to content

Commit 0a01cb2

Browse files
committed
further refactored
1 parent 2c14ef7 commit 0a01cb2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/modules/contact-profile-section.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ add_action('fluentcrm_loaded', function () {
2121
### How it works
2222
The custom section is added via the `addProfileSection` method of the FluentCRM Extender API. This method takes three arguments:
2323

24-
- `$key`: The key of the custom section. This ID will be used to identify the section.
25-
You may rename it as you like but make sure that it does not conflict with other section
24+
- `$key`: The key of the custom section which will be used to identify the section.
25+
It is recommended to have your own plugin prefix.
26+
For example, if your plugin prefix is `mcp`, then you can use `mcp_my_custom_section` as the key so that it will not conflict with Profile sections.
2627

2728
- `$sectionTitle`: This is the title of the new section within fluent crm profile sections.
2829

src/modules/smart-code.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Smart Code is a feature that allows you to create custom merge tags that can be
44
Smart Code is available in the Pro and Enterprise plans. Let's look at the example given below:
55
```php
66
add_action('fluentcrm_loaded', function () {
7-
$key = 'your_custom_section_key';
8-
$title = 'Your Custom Section Title';
7+
$key = 'your_custom_smartcode_group_key';
8+
$title = 'Your Custom Smartcode Group Title';
99
$shortCodes = [
1010
'code_4' => 'Code 4 Title',
1111
'code_5' => 'Code 5 Title',
@@ -29,9 +29,9 @@ add_action('fluentcrm_loaded', function () {
2929
The custom section is added via the `addSmartCode` method of the FluentCRM Extender API. This method takes four arguments:
3030

3131
- `$key`: The key is unique identifier to identify smartcode group callback. It is recommended to have your own plugin prefix.
32-
For example, if your plugin prefix is `mcp`, then you can use `mcp_your_custom_section_key` as the key so that it will not conflict with other smartcode groups.
32+
For example, if your plugin prefix is `mcp`, then you can use `mcp_your_custom_smartcode_group_key` as the key so that it will not conflict with other smartcode groups.
3333

34-
- `$title`: This is the title of the smartcode.
34+
- `$title`: This is the title of the smartcode Group. This title will be displayed in the smartcode dropdown.
3535

3636
- `$shortCodes`: This is the array of short codes that will be available in the smartcode group. The key is the shortcode and the value is the title of the short code.
3737

0 commit comments

Comments
 (0)