Skip to content

Commit

Permalink
update 2 files and delete 1 file
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvoaftab committed Jul 10, 2024
1 parent d493ec9 commit 8f34d89
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 27 deletions.
49 changes: 47 additions & 2 deletions src/content/docs/contacts/filters.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: A collection of all Hooks Filter for FluentCRM Contacts.

<ol>
<li>
<h2> Contact Statuses </h2>
## Contact Statuses

```bash
Location: wp-content/plugins/fluent-crm/app/Functions/helpers.php
Expand All @@ -24,7 +24,7 @@ description: A collection of all Hooks Filter for FluentCRM Contacts.
```
</li>
<li>
<h2> Contact Editable Statuses </h2>
## Contact Editable Statuses

```bash
Location: wp-content/plugins/fluent-crm/app/Functions/helpers.php
Expand All @@ -36,4 +36,49 @@ description: A collection of all Hooks Filter for FluentCRM Contacts.
$editableStatuses = apply_filters('fluent_crm/contact_editable_statuses', $statuses);
```
</li>
<li>
## Contact Types

```bash
Location: wp-content/plugins/fluent-crm/app/Functions/helpers.php
Line: 573
Version: 2.9.1
```

```php
apply_filters('fluent_crm/contact_types', [
'lead' => __('Lead', 'fluent-crm'),
'customer' => __('Customer', 'fluent-crm')
]);
```
</li>
<li>
## Contact Activity Types

```bash
Location: wp-content/plugins/fluent-crm/app/Functions/helpers.php
Line: 608
Version: 2.9.1
```

```php
apply_filters('fluent_crm/contact_activity_types', [
'note' => __('Note', 'fluent-crm'),
'call' => __('Call', 'fluent-crm'),
'email' => __('Email', 'fluent-crm'),
'meeting' => __('Meeting', 'fluent-crm'),
'quote_sent' => __('Quote: Sent', 'fluent-crm'),
'quote_accepted' => __('Quote: Accepted', 'fluent-crm'),
'quote_refused' => __('Quote: Refused', 'fluent-crm'),
'invoice_sent' => __('Invoice: Sent', 'fluent-crm'),
'invoice_part_paid' => __('Invoice: Part Paid', 'fluent-crm'),
'invoice_paid' => __('Invoice: Paid', 'fluent-crm'),
'invoice_refunded' => __('Invoice: Refunded', 'fluent-crm'),
'transaction' => __('Transaction', 'fluent-crm'),
'feedback' => __('Feedback', 'fluent-crm'),
'tweet' => __('Tweet', 'fluent-crm'),
'facebook_post' => __('Facebook Post', 'fluent-crm')
]);
```
</li>
</ol>
4 changes: 0 additions & 4 deletions src/content/docs/contacts/snippets.md

This file was deleted.

49 changes: 49 additions & 0 deletions src/content/docs/contacts/snippets.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: Contact Snippets
description: A collection of all Snippets for FluentCRM Contacts.
---


<ol>
<li>
## Add New Contact Statuses [APPEND]

```php
/**
* @author Ibrahim Sharif <contact@ibrahimsharif.com>
* Add new Contact Status in FluentCRM. This will not let you send campaigns or emails to any contacts for these statuses.
*/

function newContactStatus($allStatus){

$allStatus['test'] = __('Test', 'fluent-crm');
$allStatus['failed'] = __('Failed', 'fluent-crm');

return $allStatus;
}

add_filter('fluent_crm/contact_statuses', 'newContactStatus');
```
</li>
<li>
## Add New Contact Statuses [REPLACE]

```php
/**
* @author Ibrahim Sharif <contact@ibrahimsharif.com>
* Add new Contact Status in FluentCRM. This will not let you send campaigns or emails to any contacts for these statuses.
*/

function newContactStatus($allStatus){

$allStatus[] = '';
$allStatus['test'] = __('Test', 'fluent-crm');
$allStatus['failed'] = __('Failed', 'fluent-crm');

return $allStatus;
}

add_filter('fluent_crm/contact_statuses', 'newContactStatus');
```
</li>
</ol>
21 changes: 0 additions & 21 deletions src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,3 @@ hero:
link: https://fluentcrm.com/docs
icon: external
---

import { Card, CardGrid } from '@astrojs/starlight/components';

{/*
## Next steps
<!
<CardGrid stagger>
<Card title="Update content" icon="pencil">
Edit `src/content/docs/index.mdx` to see this page change.
</Card>
<Card title="Add new content" icon="add-document">
Add Markdown or MDX files to `src/content/docs` to create new pages.
</Card>
<Card title="Configure your site" icon="setting">
Edit your `sidebar` and other config in `astro.config.mjs`.
</Card>
<Card title="Read the docs" icon="open-book">
Learn more in [the Starlight Docs](https://starlight.astro.build/).
</Card>
</CardGrid>
*/}

0 comments on commit 8f34d89

Please sign in to comment.