Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,14 @@ add_filter( 'ai_default_experiment_classes', function( $experiment_classes ) {
Experiments can be disabled using the `ai_experiment_{$experiment_id}_enabled` filter:

```php
// Disable a specific experiment by its ID
add_filter( 'ai_experiment_example-experiment_enabled', '__return_false' );

// Or with a custom callback
add_filter( 'ai_experiment_example-experiment_enabled', function( $enabled ) {
// Your custom logic here
return false;
} );
```

### Disabling All Experiments
Expand Down
Loading