# asp\_index\_on\_save\_stop

```php
apply_filters('asp_index_on_save_stop', $stop, $post_id, $the_post, $update);
```

### Parameters

* **$stop** (bool) - false by default
* **$post\_id** (int) - the currently indexed post ID
* **$the\_post** (object) - the currently indexed post object
* **$update** (bool) - If true, then this is a new post, not an existing one

### Usage

```php
add_filter( 'asp_index_on_save_stop', 'asp_stop_index_by_id', 10, 4 );
function asp_stop_index_by_id( $stop, $post_id, $the_post, $update ) {
	if ( $post_id == 1 || $post_id == 2 )
		return true;

	return $stop;
}
```


---

# 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/filters/index-table-related/asp_index_on_save_stop.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.
