Skip to content

Commit fadf288

Browse files
authored
Update benchmark.md
1 parent 6dff0af commit fadf288

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/modules/benchmark.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ define `getDefaultSettings` method. This method returns the default settings of
6161

6262
Now, you need to define `getBlockFields` method which returns the settings of the benchmark.
6363
```php
64-
public function getBlockFields()
64+
public function getBlockFields($funnel)
6565
{
6666
$yourCustomTags = [
6767
[
@@ -191,7 +191,7 @@ class CourseEnrolledBenchmark extends BaseBenchmark {
191191
];
192192
}
193193

194-
public function getBlockFields()
194+
public function getBlockFields($funnel)
195195
{
196196
$yourCustomTags = [
197197
[
@@ -274,9 +274,9 @@ class CourseEnrolledBenchmark extends BaseBenchmark {
274274
### Registering the Benchmark
275275
Your benchmark is ready to use. Now, you need to register it with FluentCRM.
276276
```php
277-
add_action('fluent_crm/after_init', function () {
277+
add_action('fluentcrm_addons_loaded', function () {
278278
new Your\Plugin\Name\Automation\CourseEnrolledBenchmark();
279-
});
279+
},99);
280280
```
281281

282282

0 commit comments

Comments
 (0)