# Constants

These constants can be defined in your **wp-config.php** or in the theme **functions.php** file.

```php
/**
 * Block all external connections (to the auto udpate server)
 * It does the same as WP_HTTP_BLOCK_EXTERNAL
 **/
define('ASP_BLOCK_EXTERNAL', true);


/**
 * When defined, the plugin tries to fix the image sources on the search results
 * page on WP multisite environments.
 * WARNING: Make sure to test the results page layout after enabling, this feature
 * can be buggy.
 **/
define('ASP_MULTISITE_IMAGE_FIX', true);


/**
 * Bypasses the index table keyword counter. On some huge databases counting the
 * keywords can be actually a very demanding task due to the inefficiency
 * of the SELECT COUNT(*) query. Defining this constant will set the counter
 * to 9999 statically.
 **/
define('ASP_INDEX_BYPASS_COUNT', true);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.ajaxsearchpro.com/hooks/constants.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
