Repository navigation
Constants
Constants that can be added to your wp-config.php
Constants are variables that can be added to your wp-config.php. They are generally used for configuring development or technical features.
To use a constant, simply add a line to your wp-config.php file like so:
<?php
// [...]
define( 'ALGOLIA_HIDE_HELP_NOTICES', false );
/* That's all, stop editing! Happy blogging. */
// [...]
Make sure you define your constants before the That's all, stop editing! Happy blogging. comment, as shown above.
Here is the list of all available constants.
| Constant Name | Default Value | Description |
|---|---|---|
| ALGOLIA_HIDE_HELP_NOTICES | false | By setting to true, you will hide help notices on the autocomplete and instantsearch admin pages. This is sometimes useful if you are using a custom autocomplete or instantsearch implementation. |
| ALGOLIA_SPLIT_POSTS | true | By setting to false, 1 post will equal 1 record but content will be truncated to fit into the Algolia payload max size. |
| ALGOLIA_CONTENT_MAX_SIZE | 2000 | Split the content over several records when exceeding ALGOLIA_CONTENT_MAX_SIZE (size in bytes). WARNING: you should only reduce this value, otherwise your queue will break. |
| ALGOLIA_APPLICATION_ID | null | The Algolia application to use. |
| ALGOLIA_SEARCH_API_KEY | null | The Algolia search only API key to use. |
| ALGOLIA_API_KEY | null | The Algolia admin API key to use. |
| ALGOLIA_INDEX_NAME_PREFIX | 'wp_' | The index name prefix to use. |
Schemas
Settings
Automated Sync
Synonyms
Custom Attributes
Index Replicas
Migration Guide
Customize Templates
Customize Search
Customize Autocomplete
Customize Autocomplete (Modern Template) debounce
Migrating InstantSearch Templates to Block Themes (FSE)
Which Flows to Run
Test Setup
Critical Flows
Testing Instructions for Critical Flows
Regression Checks
Release Flows
Testing Instructions for Release Flows